diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-09-12 18:58:28 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-09-12 18:58:28 -0400 |
commit | 50f0901412d004840753246cef5b913734861a7a (patch) | |
tree | 1fe0886c51c5d878628db715dae32e6b2f0f1e96 /common/modules/overlay.jsm | |
parent | 790af21b81a81acb43f84e1e653f9b186cb6fdc8 (diff) | |
download | pentadactyl-50f0901412d004840753246cef5b913734861a7a.tar.gz |
Fix link listing in :hi output.
Diffstat (limited to 'common/modules/overlay.jsm')
-rw-r--r-- | common/modules/overlay.jsm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/modules/overlay.jsm b/common/modules/overlay.jsm index 3fa30c6b..6cb81718 100644 --- a/common/modules/overlay.jsm +++ b/common/modules/overlay.jsm @@ -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)(); |