mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 23:15:45 +01:00
Refactor storage observers to be less dodgy and stupid.
This commit is contained in:
@@ -185,8 +185,10 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
|
||||
setData: function setData(obj, key, val) {
|
||||
let data = this.getData(obj);
|
||||
if (val !== undefined)
|
||||
return data[key] = val;
|
||||
|
||||
return data[key] = val;
|
||||
delete data[key];
|
||||
},
|
||||
|
||||
overlayWindow: function overlayWindow(url, fn) {
|
||||
|
||||
Reference in New Issue
Block a user