Kaynağa Gözat

Light: Clean up.

Mr.doob 4 yıl önce
ebeveyn
işleme
14f2163f70
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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 };