Browse Source

BufferAttribute clean up.

Mr.doob 9 years ago
parent
commit
fbc57e2ae7
1 changed files with 12 additions and 23 deletions
  1. 12 23
      src/core/BufferAttribute.js

+ 12 - 23
src/core/BufferAttribute.js

@@ -22,7 +22,7 @@ function BufferAttribute ( array, itemSize, normalized ) {
 	this.version = 0;
 	this.normalized = normalized === true;
 
-};
+}
 
 BufferAttribute.prototype = {
 
@@ -313,78 +313,67 @@ BufferAttribute.prototype = {
 //
 
 function Int8Attribute ( array, itemSize ) {
-	this.isInt8Attribute = true;
 
 	return new BufferAttribute( new Int8Array( array ), itemSize );
 
-};
+}
 
 function Uint8Attribute ( array, itemSize ) {
-	this.isUint8Attribute = true;
 
 	return new BufferAttribute( new Uint8Array( array ), itemSize );
 
-};
+}
 
 function Uint8ClampedAttribute ( array, itemSize ) {
-	this.isUint8ClampedAttribute = true;
 
 	return new BufferAttribute( new Uint8ClampedArray( array ), itemSize );
 
-};
+}
 
 function Int16Attribute ( array, itemSize ) {
-	this.isInt16Attribute = true;
 
 	return new BufferAttribute( new Int16Array( array ), itemSize );
 
-};
+}
 
 function Uint16Attribute ( array, itemSize ) {
-	this.isUint16Attribute = true;
 
 	return new BufferAttribute( new Uint16Array( array ), itemSize );
 
-};
+}
 
 function Int32Attribute ( array, itemSize ) {
-	this.isInt32Attribute = true;
 
 	return new BufferAttribute( new Int32Array( array ), itemSize );
 
-};
+}
 
 function Uint32Attribute ( array, itemSize ) {
-	this.isUint32Attribute = true;
 
 	return new BufferAttribute( new Uint32Array( array ), itemSize );
 
-};
+}
 
 function Float32Attribute ( array, itemSize ) {
-	this.isFloat32Attribute = true;
 
 	return new BufferAttribute( new Float32Array( array ), itemSize );
 
-};
+}
 
 function Float64Attribute ( array, itemSize ) {
-	this.isFloat64Attribute = true;
 
 	return new BufferAttribute( new Float64Array( array ), itemSize );
 
-};
-
+}
 
 // Deprecated
 
 function DynamicBufferAttribute ( array, itemSize ) {
-	this.isDynamicBufferAttribute = true;
 
 	console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead.' );
 	return new BufferAttribute( array, itemSize ).setDynamic( true );
 
-};
+}
 
 
 export {
@@ -399,4 +388,4 @@ export {
   Uint8Attribute,
   Int8Attribute,
   BufferAttribute
-};
+};