From 36f27c2da32ba82895d1ec31cff22b124239dfef Mon Sep 17 00:00:00 2001 From: arcadeJHS Date: Sun, 3 Feb 2013 23:20:21 +0100 Subject: [PATCH] Update index.html --- index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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); + }; })(); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!