Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/appSupport.js

Issue 6228524553732096: Issue 1713 - (Disable/Enable on ...) not showing on FF Mobile (Closed)
Patch Set: Created Dec. 21, 2014, 10:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/appSupport.js
===================================================================
--- a/lib/appSupport.js
+++ b/lib/appSupport.js
@@ -702,7 +702,10 @@
this.window = window;
this.callback = callback;
this.onSelect = this.onSelect.bind(this);
- this.attach();
+ if (window.BrowserApp.deck)
+ this.attach();
+ else
+ window.addEventListener("UIReady", this.attach.bind(this), false);
Wladimir Palant 2014/12/28 11:28:23 This listener needs to be removed when it fires, o
saroyanm 2014/12/28 19:30:14 Done.
};
BrowserChangeListener.prototype = {
window: null,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld