diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-20 08:05:49 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-20 08:05:49 +0900 |
commit | 35a4b0e0be4120281c446c524b6eaa8b5103f380 (patch) | |
tree | c87c89b2cff72d0244b66b8ebcf696d24aa1b0d4 | |
parent | 4eafddde1d0c99244e37724150a71de118ce1cb3 (diff) | |
download | Orca-35a4b0e0be4120281c446c524b6eaa8b5103f380.tar.gz Orca-35a4b0e0be4120281c446c524b6eaa8b5103f380.zip |
Fixed lint errors
-rw-r--r-- | desktop/sources/scripts/terminal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/sources/scripts/terminal.js b/desktop/sources/scripts/terminal.js index 0ba04f4..8d24ca5 100644 --- a/desktop/sources/scripts/terminal.js +++ b/desktop/sources/scripts/terminal.js @@ -121,9 +121,9 @@ function Terminal () { this.isMarker = function (x, y) { return x % this.grid.w === 0 && y % this.grid.h === 0 } - + this.isHelper = function (x, y) { - return y === 0 && this.cursor.x === x || x === 0 && this.cursor.y === y || y === this.orca.h - 1 && this.cursor.x === x || x === this.orca.w - 1 && this.cursor.y === y + return (y === 0 && this.cursor.x === x) || (x === 0 && this.cursor.y === y) || (y === this.orca.h - 1 && this.cursor.x === x) || (x === this.orca.w - 1 && this.cursor.y === y) } this.portAt = function (x, y) { |