Roo/util/MixedCollection.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:44:44 +0000 (17:44 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:44:44 +0000 (17:44 +0800)
Roo/util/MixedCollection.js

index 86cd8b6..1ae3dda 100644 (file)
@@ -289,7 +289,9 @@ mc.add(otherEl);
     indexOf : function(o){
         if(!this.items.indexOf){
             for(var i = 0, len = this.items.length; i < len; i++){
-                if(this.items[i] == o) return i;
+                if(this.items[i] == o) {
+                    return i;
+                }
             }
             return -1;
         }else{