diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-01-26 23:26:20 +0100 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-01-26 23:26:20 +0100 |
| commit | b0b5253f66f5ba6e031f5a88dc1bef613517b3b6 (patch) | |
| tree | f764e84ad48de6cb514cbc97e366c21d734e247c /src/scripts/views/layers/gray.ts | |
| parent | 027b379cf9d53a12782781e586f79051461ab661 (diff) | |
Refactor remaining codebase to use 'const'
Diffstat (limited to 'src/scripts/views/layers/gray.ts')
| -rw-r--r-- | src/scripts/views/layers/gray.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripts/views/layers/gray.ts b/src/scripts/views/layers/gray.ts index ed3c9429..63911d19 100644 --- a/src/scripts/views/layers/gray.ts +++ b/src/scripts/views/layers/gray.ts @@ -33,9 +33,9 @@ export class GrayLayer implements Layer { this.container.removeAllChildren(); - let roomBounds = Util.calculateRoomBounds(this.currentRoom); + const roomBounds = Util.calculateRoomBounds(this.currentRoom); - let shape = new createjs.Shape(); + const shape = new createjs.Shape(); shape.graphics.beginFill(Colors.GRAYED_OUT_AREA); shape.cursor = "pointer"; @@ -142,4 +142,4 @@ export class GrayLayer implements Layer { public isGrayedOut(): boolean { return this.currentRoom !== undefined; } -}
\ No newline at end of file +} |
