mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 05:42:29 +02:00
ObjectStore#remove should return a value.
This commit is contained in:
1 parent
7f447b911c
commit
8621e7f79f
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user