diff --git a/examples/2048/js/game/animframe_polyfill.js b/examples/2048/js/game/animframe_polyfill.js index c524a994..f19735d9 100644 --- a/examples/2048/js/game/animframe_polyfill.js +++ b/examples/2048/js/game/animframe_polyfill.js @@ -9,13 +9,13 @@ if (!window.requestAnimationFrame) { window.requestAnimationFrame = function (callback) { - var currTime = new Date().getTime(); + var currentTime = new Date().getTime(); var timeToCall = Math.max(0, 16 - (currTime - lastTime)); var id = window.setTimeout(function () { - callback(currTime + timeToCall); + callback(currentTime + timeToCall); }, timeToCall); - lastTime = currTime + timeToCall; + lastTime = currentTime + timeToCall; return id; }; }