Skip to content

Commit c71cdb3

Browse files
authored
Merge pull request #15886 from Itee/buffergeometryutil-fix
BufferGeometryUtil: Replace for-of loop by a for loop
2 parents b9f2f2e + 702fdf7 commit c71cdb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/js/utils/BufferGeometryUtils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ THREE.BufferGeometryUtils = {
498498
var getters = [ 'getX', 'getY', 'getZ', 'getW' ];
499499

500500
// initialize the arrays
501-
for ( var name of attributeNames ) {
501+
for ( var i = 0, l = attributeNames.length; i < l; i ++ ) {
502+
var name = attributeNames[ i ];
502503

503504
attrArrays[ name ] = [];
504505

0 commit comments

Comments
 (0)