X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Futil%2FMixedCollection.js;h=2a251eed1cbff5234d9e8094c58dc82192426af9;hp=f1f98cb40db722bb36b794a67c95ca1579b04a12;hb=9c0e23144c778703b14fbc840d66855a8a954440;hpb=6d97eb7a408a27b2c78858d00d5c29ccc6666b9a diff --git a/Roo/util/MixedCollection.js b/Roo/util/MixedCollection.js index f1f98cb40d..2a251eed1c 100644 --- a/Roo/util/MixedCollection.js +++ b/Roo/util/MixedCollection.js @@ -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! },