提交 1ffb13bb 编写于 作者: M Mr.doob

More clean up to Three.js

上级 eced6544
/** /**
* @author mrdoob / http://mrdoob.com/ * @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' }; var THREE = THREE || { REVISION: '52dev' };
...@@ -15,13 +15,8 @@ self.console = self.console || { ...@@ -15,13 +15,8 @@ self.console = self.console || {
}; };
self.Int32Array = self.Int32Array || Array;
if ( self.Int32Array === undefined ) { self.Float32Array = self.Float32Array || Array;
self.Int32Array = Array;
self.Float32Array = Array;
}
// Shims for "startsWith", "endsWith", and "trim" for browsers where this is not yet implemented // 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 // not sure we should have this, or at least not have it here
...@@ -81,8 +76,8 @@ String.prototype.trim = String.prototype.trim || function () { ...@@ -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 ) };
}() ); }() );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册