File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -101,21 +101,14 @@ export default {
101101
102102 return niceFraction * Math . pow ( 10 , exponent ) ;
103103 } ,
104- // Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
104+ // Request animation polyfill
105105 requestAnimFrame : ( function ( ) {
106106 if ( typeof window === 'undefined' ) {
107107 return function ( callback ) {
108108 callback ( ) ;
109109 } ;
110110 }
111- return window . requestAnimationFrame ||
112- window . webkitRequestAnimationFrame ||
113- window . mozRequestAnimationFrame ||
114- window . oRequestAnimationFrame ||
115- window . msRequestAnimationFrame ||
116- function ( callback ) {
117- return window . setTimeout ( callback , 1000 / 60 ) ;
118- } ;
111+ return window . requestAnimationFrame ;
119112 } ( ) ) ,
120113 // -- Canvas methods
121114 fontString : function ( pixelSize , fontStyle , fontFamily ) {
You can’t perform that action at this time.
0 commit comments