[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 252/483: Don't delay configuring hotkeys - hotkeys added after the user pressed a button are no longer considered

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:46 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 f9fa103dd55cda45c5cbd3ab213ab936950f9c52
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Tue Oct 26 08:40:30 2010 +0200

    Don't delay configuring hotkeys - hotkeys added after the user pressed a button are no longer considered
---
 modules/AppIntegration.jsm | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/modules/AppIntegration.jsm b/modules/AppIntegration.jsm
index caa52ba..06cb8db 100644
--- a/modules/AppIntegration.jsm
+++ b/modules/AppIntegration.jsm
@@ -84,19 +84,11 @@ function WindowWrapper(wnd)
   this.E("ehh-elementmarker").firstChild.className = AppIntegration.elementMarkerClass;
 
   this.registerEventListeners();
-
-  let me = this;
-  this.configureTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
-  this.configureTimer.initWithCallback(function()
-  {
-    me.configureTimer = null;
-    me.configureKeys();
-  }, 1000, Ci.nsITimer.TYPE_ONE_SHOT);
+  this.configureKeys();
 }
 WindowWrapper.prototype =
 {
   window: null,
-  configureTimer: null,
 
   _bindMethod: function(method)
   {

-- 
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