aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-04-20 08:05:49 +0900
committerDevine Lu Linvega <[email protected]>2019-04-20 08:05:49 +0900
commit35a4b0e0be4120281c446c524b6eaa8b5103f380 (patch)
treec87c89b2cff72d0244b66b8ebcf696d24aa1b0d4
parent4eafddde1d0c99244e37724150a71de118ce1cb3 (diff)
downloadOrca-35a4b0e0be4120281c446c524b6eaa8b5103f380.tar.gz
Orca-35a4b0e0be4120281c446c524b6eaa8b5103f380.zip
Fixed lint errors
-rw-r--r--desktop/sources/scripts/terminal.js4
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) {