From 405b72c20045bd9a32017d5b87b4859ea5650b33 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 22 Feb 2011 18:16:31 +0000 Subject: [PATCH] Simpler RequestAnimationFrame.js --- examples/js/RequestAnimationFrame.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/js/RequestAnimationFrame.js b/examples/js/RequestAnimationFrame.js index cf684ae128..17a577b039 100644 --- a/examples/js/RequestAnimationFrame.js +++ b/examples/js/RequestAnimationFrame.js @@ -7,8 +7,7 @@ if ( !window.requestAnimationFrame ) { window.requestAnimationFrame = ( function() { - return window.requestAnimationFrame || - window.webkitRequestAnimationFrame || + return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || -- GitLab