Browse Source

BufferGeometryUtil: Replace for-of loop by a for loop

Tristan VALCKE 6 years ago
parent
commit
bdbea51b28
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/js/utils/BufferGeometryUtils.js

+ 3 - 1
examples/js/utils/BufferGeometryUtils.js

@@ -498,7 +498,9 @@ THREE.BufferGeometryUtils = {
 		var getters = [ 'getX', 'getY', 'getZ', 'getW' ];
 
 		// initialize the arrays
-		for ( var name of attributeNames ) {
+		var name = undefined;
+		for ( var attributeNameIndex = 0, numberOfAttributeNames = attributeNames.length ; attributeNameIndex < numberOfAttributeNames ; attributeNameIndex++  ) {
+			name = attributeNames[ attributeNameIndex ];
 
 			attrArrays[ name ] = [];