瀏覽代碼

Updated builds.

Mr.doob 9 年之前
父節點
當前提交
8f1fa14080
共有 2 個文件被更改,包括 1 次插入8 次删除
  1. 0 7
      build/three.js
  2. 1 1
      build/three.min.js

+ 0 - 7
build/three.js

@@ -16,13 +16,6 @@ if ( typeof define === 'function' && define.amd ) {
 
 	module.exports = THREE;
 
-	if ( typeof self === 'undefined' ) {
-
-		/** @suppress {duplicate, const} */
-		var self = global;
-
-	}
-
 }
 
 

+ 1 - 1
build/three.min.js

@@ -1,5 +1,5 @@
 // threejs.org/license
-'use strict';var THREE={REVISION:"74dev"};if("function"===typeof define&&define.amd)define("three",THREE);else if("undefined"!==typeof exports&&"undefined"!==typeof module&&(module.exports=THREE,"undefined"===typeof self))var self=global;
+'use strict';var THREE={REVISION:"74dev"};"function"===typeof define&&define.amd?define("three",THREE):"undefined"!==typeof exports&&"undefined"!==typeof module&&(module.exports=THREE);
 void 0!==self.requestAnimationFrame&&void 0!==self.cancelAnimationFrame||function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!self.requestAnimationFrame;++c)self.requestAnimationFrame=self[b[c]+"RequestAnimationFrame"],self.cancelAnimationFrame=self[b[c]+"CancelAnimationFrame"]||self[b[c]+"CancelRequestAnimationFrame"];void 0===self.requestAnimationFrame&&void 0!==self.setTimeout&&(self.requestAnimationFrame=function(b){var c=Date.now(),f=Math.max(0,16-(c-a)),g=self.setTimeout(function(){b(c+
 f)},f);a=c+f;return g});void 0===self.cancelAnimationFrame&&void 0!==self.clearTimeout&&(self.cancelAnimationFrame=function(a){self.clearTimeout(a)})}();void 0===self.performance&&(self.performance={});void 0===self.performance.now&&function(){var a=Date.now();self.performance.now=function(){return Date.now()-a}}();void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52));void 0===Math.sign&&(Math.sign=function(a){return 0>a?-1:0<a?1:+a});
 void 0===Function.prototype.name&&void 0!==Object.defineProperty&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1]}});