From 9c0e23144c778703b14fbc840d66855a8a954440 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 12 Mar 2020 15:57:14 +0800 Subject: [PATCH] length as a mixedcollection key confuses things... --- Roo/util/MixedCollection.js | 3 +++ 1 file changed, 3 insertions(+) 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! }, -- 2.39.2