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

index 38b1219..90c36bd 100644 (file)
@@ -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);