Skip to content

Instantly share code, notes, and snippets.

@daleharvey
Created October 20, 2014 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daleharvey/7d9e79be3bdc6956c742 to your computer and use it in GitHub Desktop.
Save daleharvey/7d9e79be3bdc6956c742 to your computer and use it in GitHub Desktop.
/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