diff --git a/demo/js/Demo.js b/demo/js/Demo.js index 6ed3ca8..d896742 100644 --- a/demo/js/Demo.js +++ b/demo/js/Demo.js @@ -1331,7 +1331,7 @@ Events.off(_engine, _sceneEvents[i]); if (_mouseConstraint.events) { - for (var i = 0; i < _sceneEvents.length; i++) + for (i = 0; i < _sceneEvents.length; i++) Events.off(_mouseConstraint, _sceneEvents[i]); } diff --git a/src/core/Sleeping.js b/src/core/Sleeping.js index 568e8e6..4f18a8f 100644 --- a/src/core/Sleeping.js +++ b/src/core/Sleeping.js @@ -8,8 +8,8 @@ var Sleeping = {}; (function() { - Sleeping._motionWakeThreshold = 0.18, - Sleeping._motionSleepThreshold = 0.08, + Sleeping._motionWakeThreshold = 0.18; + Sleeping._motionSleepThreshold = 0.08; Sleeping._minBias = 0.9; /**