From 837baa6673920be6097ac0fe182bf0ad0d8a0c96 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 2 Oct 2015 17:04:47 +0200 Subject: [PATCH] Some commit --- js/l3d/apps/prototype/Coin.js | 4 +++- js/l3d/apps/prototype/interactive/main.js | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/js/l3d/apps/prototype/Coin.js b/js/l3d/apps/prototype/Coin.js index 82260ce..361d7b3 100644 --- a/js/l3d/apps/prototype/Coin.js +++ b/js/l3d/apps/prototype/Coin.js @@ -91,7 +91,9 @@ Coin.update = function() { } - document.getElementById('next').style.background = instantToColor(Coin.colorInstant); + if (document.getElementById('next') !== null) { + document.getElementById('next').style.background = instantToColor(Coin.colorInstant); + } // Coin.domElement.width = Coin.domElement.width; diff --git a/js/l3d/apps/prototype/interactive/main.js b/js/l3d/apps/prototype/interactive/main.js index a5a46c4..2818991 100644 --- a/js/l3d/apps/prototype/interactive/main.js +++ b/js/l3d/apps/prototype/interactive/main.js @@ -1,3 +1,5 @@ +L3D.DB.disable(); + // Let's be sure we avoid using global variables var onWindowResize = (function() { @@ -13,6 +15,8 @@ L3D.ProgressiveLoader.onFinished = function() { } loadingCanvas.clear(); + L3D.DB.enable(); + camera1.reset(); } // Disable scrolling