mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 03:45:45 +01:00
Don't Be Evil.
--HG-- rename : pentadactyl/skin/icon.png => pentadactyl/icon16.png
This commit is contained in:
@@ -150,11 +150,14 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
getData: function getData(obj, key, constructor) {
|
||||
let { id } = this;
|
||||
|
||||
if (!(id in obj))
|
||||
if (!(id in obj && obj[id]))
|
||||
obj[id] = {};
|
||||
|
||||
if (obj[id][key] === undefined)
|
||||
obj[id][key] = (constructor || Array)();
|
||||
if (constructor === undefined || callable(constructor))
|
||||
obj[id][key] = (constructor || Array)();
|
||||
else
|
||||
obj[id][key] = constructor;
|
||||
|
||||
return obj[id][key];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user