浏览代码

Merge pull request #12733 from takahirox/gltfCleanUp

Clean up GLTFLoader
Mr.doob 7 年之前
父节点
当前提交
c3a3b2d03d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/loaders/GLTFLoader.js

+ 3 - 3
examples/js/loaders/GLTFLoader.js

@@ -1015,7 +1015,7 @@ THREE.GLTFLoader = ( function () {
 
 	/* UTILITY FUNCTIONS */
 
-	function _each( object, callback, thisObj ) {
+	function _each( object, callback ) {
 
 		if ( ! object ) {
 
@@ -1034,7 +1034,7 @@ THREE.GLTFLoader = ( function () {
 
 			for ( var idx = 0; idx < length; idx ++ ) {
 
-				var value = callback.call( thisObj || this, object[ idx ], idx );
+				var value = callback( object[ idx ], idx );
 
 				if ( value ) {
 
@@ -1066,7 +1066,7 @@ THREE.GLTFLoader = ( function () {
 
 				if ( object.hasOwnProperty( key ) ) {
 
-					var value = callback.call( thisObj || this, object[ key ], key );
+					var value = callback( object[ key ], key );
 
 					if ( value ) {