Преглед изворни кода

fix cancelRequestAnimationFrame polyfill

Ryan Berdeen пре 14 година
родитељ
комит
bf644ea5ff
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Three.js

+ 1 - 1
src/Three.js

@@ -23,7 +23,7 @@ if ( ! self.Int32Array ) {
     for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
         window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
         window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] 
-                                   || window[vendors[x]+'RequestCancelAnimationFrame'];
+                                   || window[vendors[x]+'CancelRequestAnimationFrame'];
     }
  
     if (!window.requestAnimationFrame)

粤ICP备19079148号