浏览代码

Clean up.

Mr.doob 9 年之前
父节点
当前提交
9fb24c6c65
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 2
      src/Three.js
  2. 1 0
      utils/build/externs/common.js

+ 1 - 2
src/Three.js

@@ -14,10 +14,9 @@ if ( typeof define === 'function' && define.amd ) {
 
 
 	module.exports = THREE;
 	module.exports = THREE;
 
 
-	// detects wheather self is not defined and uses global in node environment
 	if ( typeof self === 'undefined' ) {
 	if ( typeof self === 'undefined' ) {
 
 
-		// self gets hoisted!
+		/** @suppress {duplicate, const} */
 		var self = global;
 		var self = global;
 
 
 	}
 	}

+ 1 - 0
utils/build/externs/common.js

@@ -1,6 +1,7 @@
 var AudioContext;
 var AudioContext;
 var console;
 var console;
 var define;
 var define;
+var global;
 var module;
 var module;
 var exports;
 var exports;
 var JSON;
 var JSON;