[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 227/483: Remove observer as the very first thing, before doing anything else

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit b089a341f4672c459951da5fdffa90afeedb69f1
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Oct 22 10:14:13 2010 +0200

    Remove observer as the very first thing, before doing anything else
---
 components/Initializer.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/Initializer.js b/components/Initializer.js
index 1e8a14f..5eaf1e8 100644
--- a/components/Initializer.js
+++ b/components/Initializer.js
@@ -53,13 +53,13 @@ Initializer.prototype =
         observerService.addObserver(this, "final-ui-startup", true);
         break;
       case "final-ui-startup":
+        observerService.removeObserver(this, "final-ui-startup");
+
         // Load the module
         let chromeRegistry = Cc["@mozilla.org/chrome/chrome-registry;1"].getService(Ci.nsIChromeRegistry);
         let ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
         let moduleURL = chromeRegistry.convertChromeURL(ioService.newURI("chrome://elemhidehelper-modules/content/ABPIntegration.jsm", null, null));
         Cu.import(moduleURL.spec);
-
-        observerService.removeObserver(this, "final-ui-startup");
         break;
     }
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list