Ver código fonte

Use standard for instead for of

Signed-off-by: Riccardo Padovani <rpadovani@nextbit.it>
Riccardo Padovani 7 anos atrás
pai
commit
2c32a6f189
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      examples/js/loaders/GLTFLoader.js

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

@@ -1555,9 +1555,9 @@ THREE.GLTFLoader = ( function () {
 
 
 		var keys = Object.keys( attributes ).sort();
 		var keys = Object.keys( attributes ).sort();
 
 
-		for ( var key of keys ) {
+		for ( var i = 0, il = keys.length; i < il; i ++ ) {
 
 
-			attributesKey += key + attributes[ key ];
+			attributesKey += keys[ i ] + attributes[ keys[ i ] ];
 
 
 		}
 		}
 
 

粤ICP备19079148号