projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d97eb7
)
length as a mixedcollection key confuses things...
author
Alan Knowles
<alan@roojs.com>
Thu, 12 Mar 2020 07:57:14 +0000
(15:57 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 12 Mar 2020 07:57:14 +0000
(15:57 +0800)
Roo/util/MixedCollection.js
patch
|
blob
|
history
diff --git
a/Roo/util/MixedCollection.js
b/Roo/util/MixedCollection.js
index
f1f98cb
..
2a251ee
100644
(file)
--- 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!
},