1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-23 08:33:32 +01:00

Fix link listing in :hi output.

This commit is contained in:
Kris Maglione
2011-09-12 18:58:28 -04:00
parent 790af21b81
commit 50f0901412
6 changed files with 30 additions and 17 deletions

View File

@@ -153,6 +153,9 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
if (!(id in obj && obj[id]))
obj[id] = {};
if (arguments.length == 1)
return obj[id];
if (obj[id][key] === undefined)
if (constructor === undefined || callable(constructor))
obj[id][key] = (constructor || Array)();