omitting 'window.' was causing undefined errors

This commit is contained in:
louisremi 2011-02-01 12:02:02 +01:00 committed by timmywil
parent f7ccec1b70
commit 9dc6397187

View 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,