From 74fbc5833fb691af0c030413d5b7713c54f0e31b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 27 Feb 2011 16:58:21 -0500 Subject: Move some event-based code into observers in the modules it affects. --- common/modules/contexts.jsm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/modules/contexts.jsm') 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, { -- cgit v1.2.3