length as a mixedcollection key confuses things...
authorAlan Knowles <alan@roojs.com>
Thu, 12 Mar 2020 07:57:14 +0000 (15:57 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Mar 2020 07:57:14 +0000 (15:57 +0800)
Roo/util/MixedCollection.js

index f1f98cb..2a251ee 100644 (file)
@@ -323,6 +323,9 @@ mc.add(otherEl);
  * @return {Object} The item associated with the passed key.
  */
     item : function(key){
+        if (key === 'length') {
+            return null;
+        }
         var item = typeof this.map[key] != "undefined" ? this.map[key] : this.items[key];
         return typeof item != 'function' || this.allowFunctions ? item : null; // for prototype!
     },