소스 검색

Use standard for instead for of

Signed-off-by: Riccardo Padovani <[email protected]>
Riccardo Padovani 6 년 전
부모
커밋
2c32a6f189
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 ] ];
 
 		}