X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/util/HashMap.js diff --git a/src/util/HashMap.js b/src/util/HashMap.js index 0a914873..abbd56d9 100644 --- a/src/util/HashMap.js +++ b/src/util/HashMap.js @@ -36,6 +36,9 @@ map.each(function(key, value, length){ *

*/ 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);