]> source.dussan.org Git - jquery.git/commitdiff
omitting 'window.' was causing undefined errors
authorlouisremi <louisremi@louisremi-laptop.(none)>
Tue, 1 Feb 2011 11:02:02 +0000 (12:02 +0100)
committertimmywil <tim.willison@thisismedium.com>
Mon, 4 Apr 2011 19:46:37 +0000 (15:46 -0400)
src/support.js

index 6d33186824c874f9e29882439eec07df23c9ff85..725575b3bcb13638c42c22fa22f6e69938f2ba1d 100644 (file)
@@ -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,