Mr.doob преди 4 години
родител
ревизия
14f2163f70
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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 };