summaryrefslogtreecommitdiff
path: root/common/modules/contexts.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-02-27 16:58:21 -0500
committerKris Maglione <maglione.k@gmail.com>2011-02-27 16:58:21 -0500
commit74fbc5833fb691af0c030413d5b7713c54f0e31b (patch)
tree4714e026944fd9d473bed14e6fc6cecad89de57e /common/modules/contexts.jsm
parent191ece33e032483c2445594c21c1cbc4b1da75fb (diff)
downloadpentadactyl-74fbc5833fb691af0c030413d5b7713c54f0e31b.tar.gz
Move some event-based code into observers in the modules it affects.
Diffstat (limited to 'common/modules/contexts.jsm')
-rw-r--r--common/modules/contexts.jsm6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/modules/contexts.jsm b/common/modules/contexts.jsm
index 0c74bc54..f2a8da12 100644
--- a/common/modules/contexts.jsm
+++ b/common/modules/contexts.jsm
@@ -125,6 +125,12 @@ var Contexts = Module("contexts", {
util.trapErrors("onUnload", plugin);
},
+ signals: {
+ "browser.locationChange": function (webProgress, request, uri) {
+ this.flush();
+ }
+ },
+
Group: Class("Group", Group, { modules: modules, get hiveMap() modules.contexts.hives }),
Hives: Class("Hives", Class.Property, {