diff --git a/examples/js/utils/BufferGeometryUtils.js b/examples/js/utils/BufferGeometryUtils.js index e8f5d0c801bcb2f2d3256cb215ea04d8b147f54f..f53f45b1cd286af1f33f8cb94cf319fb90c0e74e 100644 --- a/examples/js/utils/BufferGeometryUtils.js +++ b/examples/js/utils/BufferGeometryUtils.js @@ -498,9 +498,8 @@ THREE.BufferGeometryUtils = { var getters = [ 'getX', 'getY', 'getZ', 'getW' ]; // initialize the arrays - var name = undefined; - for ( var attributeNameIndex = 0, numberOfAttributeNames = attributeNames.length ; attributeNameIndex < numberOfAttributeNames ; attributeNameIndex++ ) { - name = attributeNames[ attributeNameIndex ]; + for ( var i = 0, l = attributeNames.length; i < l; i ++ ) { + var name = attributeNames[ i ]; attrArrays[ name ] = [];