Roo/util/MixedCollection.js
authoredward <edward@roojs.com>
Tue, 5 Jan 2016 05:56:10 +0000 (13:56 +0800)
committeredward <edward@roojs.com>
Tue, 5 Jan 2016 05:56:10 +0000 (13:56 +0800)
Roo/util/MixedCollection.js

index 3eccd58..cf0e522 100644 (file)
@@ -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);