Skip to content

Commit 14f2163

Browse files
committed
Light: Clean up.
1 parent 3d82b58 commit 14f2163

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lights/Light.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ class Light extends Object3D {
55

66
constructor( color, intensity = 1 ) {
77

8-
super( );
8+
super();
9+
10+
Object.defineProperty( this, 'isLight', { value: true } );
911

1012
this.type = 'Light';
1113

1214
this.color = new Color( color );
1315
this.intensity = intensity;
14-
Object.defineProperty( this, 'isLight', { value: true } );
1516

1617
}
1718

@@ -48,5 +49,4 @@ class Light extends Object3D {
4849

4950
}
5051

51-
5252
export { Light };

0 commit comments

Comments
 (0)