Browse Source

Light: Clean up.

Mr.doob 4 years ago
parent
commit
14f2163f70
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/lights/Light.js

+ 3 - 3
src/lights/Light.js

@@ -5,13 +5,14 @@ class Light extends Object3D {
 
 	constructor( color, intensity = 1 ) {
 
-		super( );
+		super();
+
+		Object.defineProperty( this, 'isLight', { value: true } );
 
 		this.type = 'Light';
 
 		this.color = new Color( color );
 		this.intensity = intensity;
-		Object.defineProperty( this, 'isLight', { value: true } );
 
 	}
 
@@ -48,5 +49,4 @@ class Light extends Object3D {
 
 }
 
-
 export { Light };