Some commit

This commit is contained in:
Thomas FORGIONE 2015-10-02 17:04:47 +02:00
parent d8d838ac3d
commit 837baa6673
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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