Added requestAnimationFrame

To fix the warning " 'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead. " in more recent versions of Chrome
This commit is contained in:
George Corney 2014-09-16 11:24:10 +01:00
parent 072e945b32
commit d3a74283d1

View File

@ -19,7 +19,8 @@ define([
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
*/
return window.webkitRequestAnimationFrame ||
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||