From 91805fa74921e84b6f349d945b672bade33b1e5b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 1 Oct 2013 08:55:39 +0000 Subject: [PATCH] --- js/libs/fluidbook/fluidbook.js | 3 ++- js/libs/gal/gal.filesystem.js | 6 ------ js/libs/gal/gal.js | 1 - js/main.js | 10 +--------- 4 files changed, 3 insertions(+), 17 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index 75cef260..849abbe7 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -95,17 +95,18 @@ Fluidbook.prototype = { }); }, hideSplash: function() { + console.log('hide splash'); if ($("#splash").length == 0) { return; } var $this = this; setTimeout(function() { + $this._hideSplash(); try { navigator.splashscreen.hide(); } catch (err) { } - $this._hideSplash(); }, 3000); }, _hideSplash: function() { diff --git a/js/libs/gal/gal.filesystem.js b/js/libs/gal/gal.filesystem.js index 47e1fa50..2bf629a1 100644 --- a/js/libs/gal/gal.filesystem.js +++ b/js/libs/gal/gal.filesystem.js @@ -164,8 +164,6 @@ that.regenerate(callback); }; - console.log('fs init'); - // Callback when the filesystem API has granted quota var quotaCallback = function(grantedBytes) { var persistent = LocalFileSystem.PERSISTENT; @@ -253,14 +251,10 @@ var that = this; // And then recreate it var fs = this.fs; - - console.log('regenerate'); - createDir_(fs.root, ROOT_DIR.split('/'), function(res) { // Create a directory for the root of the GAL fs.root.getDirectory(ROOT_DIR, {create: true}, function(dirEntry) { that.root = dirEntry; - console.log('root created'); callback(); }, onError); }); diff --git a/js/libs/gal/gal.js b/js/libs/gal/gal.js index e073ea2e..21b48e14 100644 --- a/js/libs/gal/gal.js +++ b/js/libs/gal/gal.js @@ -351,7 +351,6 @@ var that = this; // Start by downloading the first bundle, then download subsequent ones. (function loop(bundleIndex) { - console.log(bundleIndex); if (bundleIndex == that.bundleOrder.length) { // We're done downloading stuff! return; diff --git a/js/main.js b/js/main.js index c67cae5b..6c32b80e 100644 --- a/js/main.js +++ b/js/main.js @@ -81,22 +81,17 @@ function onDeviceReady() { } - console.log('cordova ready'); - console.log(fsprefix); - console.log(manifest); - if (navigator.onLine && manifest) { var readyToLoad = false; var finishedLoading = false; gal = new GameAssetLoader(JSON.parse(manifest), fsprefix); - console.log(gal); gal.init(function() { - console.log('gal inited'); startAfterLoading = true; init(); }); gal.onLoaded(function(info) { + console.log('loaded ' + info.bundleName); $(window).trigger('GALBundleLoaded', [info]); }); @@ -126,10 +121,7 @@ function onDeviceReady() { } catch (err) { } - - }); - console.log('gal waiting...'); } else { init(); } -- 2.39.5