From 9dc63971877d583dac5bb5c8b0c3d73d1127f144 Mon Sep 17 00:00:00 2001 From: louisremi Date: Tue, 1 Feb 2011 12:02:02 +0100 Subject: [PATCH] omitting 'window.' was causing undefined errors --- src/support.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support.js b/src/support.js index 6d3318682..725575b3b 100644 --- a/src/support.js +++ b/src/support.js @@ -60,9 +60,9 @@ // Verify requestAnimationFrame mechanism existence // use the prefixed name as the value - requestAnimationFrame: mozRequestAnimationFrame ? + requestAnimationFrame: window.mozRequestAnimationFrame ? 'mozRequestAnimationFrame' : - webkitRequestAnimationFrame ? + window.webkitRequestAnimationFrame ? 'webkitRequestAnimationFrame' : false,