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:
@@ -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