Browse Source

fix cancelRequestAnimationFrame polyfill

Ryan Berdeen 13 years ago
parent
commit
bf644ea5ff
1 changed files with 1 additions and 1 deletions
  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)