1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 23:44:12 +01:00

ObjectStore#remove should return a value.

This commit is contained in:
Kris Maglione
2011-03-01 20:21:11 -05:00
parent 7f447b911c
commit 8621e7f79f

View File

@@ -127,9 +127,10 @@ var ObjectStore = Class("ObjectStore", StoreBase, {
keys: function keys() Object.keys(this._object),
remove: function remove(key) {
var ret = this._object[key];
var res = this._object[key];
delete this._object[key];
this.fireEvent("remove", key);
return res;
},
set: function set(key, val) {