ソースを参照

BufferGeometryUtils: Naming convention

Tristan VALCKE 6 年 前
コミット
702fdf7928
1 ファイル変更2 行追加3 行削除
  1. 2 3
      examples/js/utils/BufferGeometryUtils.js

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

@@ -498,9 +498,8 @@ THREE.BufferGeometryUtils = {
 		var getters = [ 'getX', 'getY', 'getZ', 'getW' ];
 		var getters = [ 'getX', 'getY', 'getZ', 'getW' ];
 
 
 		// initialize the arrays
 		// 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 ] = [];
 			attrArrays[ name ] = [];