浏览代码

More clean up to Three.js

Mr.doob 13 年之前
父节点
当前提交
1ffb13bb98
共有 1 个文件被更改,包括 5 次插入10 次删除
  1. 5 10
      src/Three.js

+ 5 - 10
src/Three.js

@@ -1,6 +1,6 @@
 /**
  * @author mrdoob / http://mrdoob.com/
- * @modified by Larry Battle / http://bateru.com/news
+ * @author Larry Battle / http://bateru.com/news
  */
 
 var THREE = THREE || { REVISION: '52dev' };
@@ -15,13 +15,8 @@ self.console = self.console || {
 
 };
 
-
-if ( self.Int32Array === undefined ) {
-
-	self.Int32Array = Array;
-	self.Float32Array = Array;
-
-}
+self.Int32Array = self.Int32Array || Array;
+self.Float32Array = self.Float32Array || Array;
 
 // Shims for "startsWith", "endsWith", and "trim" for browsers where this is not yet implemented
 // not sure we should have this, or at least not have it here
@@ -81,8 +76,8 @@ String.prototype.trim = String.prototype.trim || function () {
 		};
 
 	}
-	
-	window.cancelAnimationFrame = window.cancelAnimationFrame || function ( id ) { window.clearTimeout( id ); };
+
+	window.cancelAnimationFrame = window.cancelAnimationFrame || function ( id ) { window.clearTimeout( id ) };
 
 }() );