projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128b8c8
)
Roo/util/MixedCollection.js
author
edward
<edward@roojs.com>
Tue, 5 Jan 2016 05:56:10 +0000
(13:56 +0800)
committer
edward
<edward@roojs.com>
Tue, 5 Jan 2016 05:56:10 +0000
(13:56 +0800)
Roo/util/MixedCollection.js
patch
|
blob
|
history
diff --git
a/Roo/util/MixedCollection.js
b/Roo/util/MixedCollection.js
index
3eccd58
..
cf0e522
100644
(file)
--- a/
Roo/util/MixedCollection.js
+++ b/
Roo/util/MixedCollection.js
@@
-144,11
+144,15
@@
mc.add(otherEl);
o = arguments[0];
key = this.getKey(o);
}
+ Roo.log('replace.........................');
+ Roo.log([o, key]);
var old = this.item(key);
if(typeof key == "undefined" || key === null || typeof old == "undefined"){
return this.add(key, o);
}
var index = this.indexOfKey(key);
+ Roo.log(index);
+
this.items[index] = o;
this.map[key] = o;
this.fireEvent("replace", key, old, o);