length as a mixedcollection key confuses things...
[roojs1] / 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!
     },