Skip to content

Commit fbc57e2

Browse files
committed
BufferAttribute clean up.
1 parent b52c17d commit fbc57e2

1 file changed

Lines changed: 12 additions & 23 deletions

File tree

src/core/BufferAttribute.js

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function BufferAttribute ( array, itemSize, normalized ) {
2222
this.version = 0;
2323
this.normalized = normalized === true;
2424

25-
};
25+
}
2626

2727
BufferAttribute.prototype = {
2828

@@ -313,78 +313,67 @@ BufferAttribute.prototype = {
313313
//
314314

315315
function Int8Attribute ( array, itemSize ) {
316-
this.isInt8Attribute = true;
317316

318317
return new BufferAttribute( new Int8Array( array ), itemSize );
319318

320-
};
319+
}
321320

322321
function Uint8Attribute ( array, itemSize ) {
323-
this.isUint8Attribute = true;
324322

325323
return new BufferAttribute( new Uint8Array( array ), itemSize );
326324

327-
};
325+
}
328326

329327
function Uint8ClampedAttribute ( array, itemSize ) {
330-
this.isUint8ClampedAttribute = true;
331328

332329
return new BufferAttribute( new Uint8ClampedArray( array ), itemSize );
333330

334-
};
331+
}
335332

336333
function Int16Attribute ( array, itemSize ) {
337-
this.isInt16Attribute = true;
338334

339335
return new BufferAttribute( new Int16Array( array ), itemSize );
340336

341-
};
337+
}
342338

343339
function Uint16Attribute ( array, itemSize ) {
344-
this.isUint16Attribute = true;
345340

346341
return new BufferAttribute( new Uint16Array( array ), itemSize );
347342

348-
};
343+
}
349344

350345
function Int32Attribute ( array, itemSize ) {
351-
this.isInt32Attribute = true;
352346

353347
return new BufferAttribute( new Int32Array( array ), itemSize );
354348

355-
};
349+
}
356350

357351
function Uint32Attribute ( array, itemSize ) {
358-
this.isUint32Attribute = true;
359352

360353
return new BufferAttribute( new Uint32Array( array ), itemSize );
361354

362-
};
355+
}
363356

364357
function Float32Attribute ( array, itemSize ) {
365-
this.isFloat32Attribute = true;
366358

367359
return new BufferAttribute( new Float32Array( array ), itemSize );
368360

369-
};
361+
}
370362

371363
function Float64Attribute ( array, itemSize ) {
372-
this.isFloat64Attribute = true;
373364

374365
return new BufferAttribute( new Float64Array( array ), itemSize );
375366

376-
};
377-
367+
}
378368

379369
// Deprecated
380370

381371
function DynamicBufferAttribute ( array, itemSize ) {
382-
this.isDynamicBufferAttribute = true;
383372

384373
console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead.' );
385374
return new BufferAttribute( array, itemSize ).setDynamic( true );
386375

387-
};
376+
}
388377

389378

390379
export {
@@ -399,4 +388,4 @@ export {
399388
Uint8Attribute,
400389
Int8Attribute,
401390
BufferAttribute
402-
};
391+
};

0 commit comments

Comments
 (0)