[Pkg-mozext-commits] [adblock-plus] 21/52: issue 1713 - (Disable/Enable on ...) not showing on FF Mobile
David Prévot
taffit at moszumanska.debian.org
Thu Jan 22 21:43:45 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.
commit b6b012fd65e85854dde79322f50ec30c626e6054
Author: Manvel Saroyan <manvel at adblockplus.org>
Date: Mon Dec 29 15:36:44 2014 +0400
issue 1713 - (Disable/Enable on ...) not showing on FF Mobile
---
lib/appSupport.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/appSupport.js b/lib/appSupport.js
index cbc17ae..624790e 100644
--- a/lib/appSupport.js
+++ b/lib/appSupport.js
@@ -702,7 +702,11 @@ switch (application)
this.window = window;
this.callback = callback;
this.onSelect = this.onSelect.bind(this);
- this.attach();
+ this.attach = this.attach.bind(this);
+ if (window.BrowserApp.deck)
+ this.attach();
+ else
+ window.addEventListener("UIReady", this.attach, false);
};
BrowserChangeListener.prototype = {
window: null,
@@ -730,8 +734,8 @@ switch (application)
attach: function()
{
+ this.window.removeEventListener("UIReady", this.attach, false);
this.onSelect();
-
this.window.BrowserApp.deck.addEventListener("TabSelect", this.onSelect, false);
},
detach: function()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list