Browse Source

Core: Clean up. (#21899)

Michael Herzog 4 years ago
parent
commit
18226d6d27

+ 1 - 1
src/geometries/ExtrudeGeometry.js

@@ -686,7 +686,7 @@ class ExtrudeGeometry extends BufferGeometry {
 
 	toJSON() {
 
-		const data = BufferGeometry.prototype.toJSON.call( this );
+		const data = super.toJSON();
 
 		const shapes = this.parameters.shapes;
 		const options = this.parameters.options;

+ 1 - 1
src/geometries/ShapeGeometry.js

@@ -129,7 +129,7 @@ class ShapeGeometry extends BufferGeometry {
 
 	toJSON() {
 
-		const data = BufferGeometry.prototype.toJSON.call( this );
+		const data = super.toJSON();
 
 		const shapes = this.parameters.shapes;
 

+ 2 - 1
src/geometries/TubeGeometry.js

@@ -160,9 +160,10 @@ class TubeGeometry extends BufferGeometry {
 		}
 
 	}
+
 	toJSON() {
 
-		const data = BufferGeometry.prototype.toJSON.call( this );
+		const data = super.toJSON();
 
 		data.path = this.parameters.path.toJSON();