diff --git a/index.html b/index.html index cdd6295..5b8d1be 100644 --- a/index.html +++ b/index.html @@ -319,15 +319,21 @@ }; // crossbrowser implementation for requestAnimationFrame - var requestAnimation = (function() { - return /*window.requestAnimationFrame + /*var requestAnimation = (function() { + return window.requestAnimationFrame || window.webkitRequestAnimationFrame - ||*/ window.mozRequestAnimationFrame + || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback, element) { window.setTimeout(callback, 1000/60); }; + })();*/ + + var requestAnimation = (function() { + return function(callback, element) { + window.setTimeout(callback, 1000/60); + }; })(); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!