projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8bfc08
)
Roo/util/MixedCollection.js
author
edward
<edward@roojs.com>
Tue, 5 Jan 2016 05:46:24 +0000
(13:46 +0800)
committer
edward
<edward@roojs.com>
Tue, 5 Jan 2016 05:46:24 +0000
(13:46 +0800)
Roo/util/MixedCollection.js
patch
|
blob
|
history
diff --git
a/Roo/util/MixedCollection.js
b/Roo/util/MixedCollection.js
index
38b1219
..
90c36bd
100644
(file)
--- a/
Roo/util/MixedCollection.js
+++ b/
Roo/util/MixedCollection.js
@@
-75,11
+75,12
@@
Roo.extend(Roo.util.MixedCollection, Roo.util.Observable, {
* @return {Object} The item added.
*/
add : function(key, o){
- Roo.log([key, o]);
+
if(arguments.length == 1){
o = arguments[0];
key = this.getKey(o);
}
+ Roo.log([key, o]);
if(typeof key == "undefined" || key === null){
this.length++;
this.items.push(o);