Explorar o código

Use standard for instead for of

Signed-off-by: Riccardo Padovani <[email protected]>
Riccardo Padovani %!s(int64=6) %!d(string=hai) anos
pai
achega
2c32a6f189
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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();
 
-		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 ] ];
 
 		}