diff options
author | Rael <rael.gc@gmail.com> | 2015-11-19 09:16:33 -0200 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-11-19 09:16:33 -0200 |
commit | 018b3ad8e1656a1c08ba69d58f53e5a60ac74e79 (patch) | |
tree | b3cfc381bef1d2a99ceba36c2e6cb1ea1788c66e /scudcloud-1.0/scudcloud-src.js | |
parent | 6601bcb0fd52e5ea49697dcc60e2613e14f67057 (diff) | |
download | scudcloud-018b3ad8e1656a1c08ba69d58f53e5a60ac74e79.zip scudcloud-018b3ad8e1656a1c08ba69d58f53e5a60ac74e79.tar.gz scudcloud-018b3ad8e1656a1c08ba69d58f53e5a60ac74e79.tar.bz2 |
Don't block didFinishLoading to run again (#292)
Diffstat (limited to 'scudcloud-1.0/scudcloud-src.js')
-rw-r--r-- | scudcloud-1.0/scudcloud-src.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/scudcloud-1.0/scudcloud-src.js b/scudcloud-1.0/scudcloud-src.js index 36ce89e..3bb9beb 100644 --- a/scudcloud-1.0/scudcloud-src.js +++ b/scudcloud-1.0/scudcloud-src.js @@ -1,3 +1,4 @@ + ScudCloud = { unloaded: true, // App functions @@ -42,11 +43,9 @@ ScudCloud = { didStartLoading: function(){ }, didFinishLoading: function(){ - if(ScudCloud.unloaded){ - TS.ui.banner.close(); - ScudCloud.populate(); - ScudCloud.unloaded = false; - } + TS.ui.banner.close(); + ScudCloud.populate(); + ScudCloud.unloaded = false; }, setConnectionStatus: function(status){ // "online", "connecting", "offline" @@ -116,4 +115,6 @@ ScudCloud = { document.onpaste = function(e){desktop.pasted(false);}; window.winssb = TSSSB = ScudCloud; // Sometimes didFinishLoading is not loaded -ScudCloud.didFinishLoading(); +if(ScudCloud.unloaded){ + ScudCloud.didFinishLoading(); +} |