Update index.html

This commit is contained in:
arcadeJHS 2013-02-03 23:20:21 +01:00
parent 5ce06c62ec
commit 36f27c2da3

View File

@ -319,15 +319,21 @@
}; };
// crossbrowser implementation for requestAnimationFrame // crossbrowser implementation for requestAnimationFrame
var requestAnimation = (function() { /*var requestAnimation = (function() {
return /*window.requestAnimationFrame return window.requestAnimationFrame
|| window.webkitRequestAnimationFrame || window.webkitRequestAnimationFrame
||*/ window.mozRequestAnimationFrame || window.mozRequestAnimationFrame
|| window.oRequestAnimationFrame || window.oRequestAnimationFrame
|| window.msRequestAnimationFrame || window.msRequestAnimationFrame
|| function(callback, element) { || function(callback, element) {
window.setTimeout(callback, 1000/60); window.setTimeout(callback, 1000/60);
}; };
})();*/
var requestAnimation = (function() {
return function(callback, element) {
window.setTimeout(callback, 1000/60);
};
})(); })();
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!