1
0
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:
Kris Maglione
2011-09-11 15:06:46 -04:00
parent 68d8bf74df
commit 345cce5a42
8 changed files with 41 additions and 28 deletions

View File

@@ -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];
},