Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / src / util / HashMap.js
index 0a91487..abbd56d 100644 (file)
@@ -36,6 +36,9 @@ map.each(function(key, value, length){
  * </p>
  */
 Ext.define('Ext.util.HashMap', {
+    mixins: {
+        observable: 'Ext.util.Observable'
+    },
 
     /**
      * @cfg {Function} keyFn A function that is used to retrieve a default key for a passed object.
@@ -43,10 +46,6 @@ Ext.define('Ext.util.HashMap', {
      * if the add method is called with a single argument.
      */
 
-    mixins: {
-        observable: 'Ext.util.Observable'
-    },
-
     /**
      * Creates new HashMap.
      * @param {Object} config (optional) Config object.
@@ -154,7 +153,7 @@ Ext.define('Ext.util.HashMap', {
         }
 
         if (me.containsKey(key)) {
-            me.replace(key, value);
+            return me.replace(key, value);
         }
 
         data = me.getData(key, value);