Created
October 20, 2014 16:03
-
-
Save daleharvey/7d9e79be3bdc6956c742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Volumes/firefoxos/gaia$ git diff | |
diff --git a/apps/system/js/app_window.js b/apps/system/js/app_window.js | |
index 5680d30..3b864c6 100644 | |
--- a/apps/system/js/app_window.js | |
+++ b/apps/system/js/app_window.js | |
@@ -10,7 +10,7 @@ | |
(function(exports) { | |
// Turn on this flag to debug all windows. | |
- var DEBUG = false; | |
+ var DEBUG = true; | |
// Turn on this flag to print all trace in debugging function. | |
var TRACE = false; | |
var _id = 0; | |
@@ -1701,6 +1701,11 @@ | |
setTimeout(callback); | |
return; | |
} else { | |
+ if (this.isHomescreen) { | |
+ this.setVisible(true); | |
+ setTimeout(callback); | |
+ return; | |
+ } | |
var invoked = false; | |
this.waitForNextPaint(function() { | |
if (invoked) { | |
@@ -1709,10 +1714,6 @@ | |
invoked = true; | |
setTimeout(callback); | |
}); | |
- if (this.isHomescreen) { | |
- this.setVisible(true); | |
- return; | |
- } | |
this.tryWaitForFullRepaint(function() { | |
if (invoked) { | |
return; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment