Skip to content
Permalink
Browse files

Do not use for-in loop to iterate over array.

  • Loading branch information...
Reinmar committed Apr 11, 2013
1 parent 2d8483f commit 2be86aa259dec5ad5808b53cdf2d3091c16bbca1
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/filebrowser/plugin.js
@@ -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 ) {

0 comments on commit 2be86aa

Please sign in to comment.
You can’t perform that action at this time.