Просмотр исходного кода

make IIFS a little easier to read

thecharhan 6 лет назад
Родитель
Сommit
0bb8cce8fd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      examples/js/loaders/GLTFLoader.js

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

@@ -3129,7 +3129,7 @@ THREE.GLTFLoader = ( function () {
 
 		var nodeDef = json.nodes[ nodeIndex ];
 
-		return function( ) {
+		return ( function() {
 
 			// .isBone isn't in glTF spec. See .markDefs
 			if ( nodeDef.isBone === true ) {
@@ -3185,7 +3185,7 @@ THREE.GLTFLoader = ( function () {
 
 			}
 
-		}( ).then( function ( node ) {
+		}() ).then( function ( node ) {
 
 			if ( nodeDef.name !== undefined ) {