Skip to content

Commit

Permalink
Do not use for-in loop to iterate over array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 11, 2013
1 parent 2d8483f commit 2be86aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filebrowser/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
var definition = evt.data.definition,
element;
// Associate filebrowser to elements with 'filebrowser' attribute.
for ( var i in definition.contents ) {
for ( var i = 0; i < definition.contents.length; ++i ) {
if ( ( element = definition.contents[ i ] ) ) {
attachFileBrowser( evt.editor, evt.data.name, definition, element.elements );
if ( element.hidden && element.filebrowser ) {
Expand Down

0 comments on commit 2be86aa

Please sign in to comment.