From: louisremi Date: Tue, 1 Feb 2011 11:02:02 +0000 (+0100) Subject: omitting 'window.' was causing undefined errors X-Git-Tag: 1.6b1~26^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9dc63971877d583dac5bb5c8b0c3d73d1127f144;p=jquery.git omitting 'window.' was causing undefined errors --- 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,