Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed Sep 11, 2019
1 parent 6585810 commit c9f3860
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions ui/control/telnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class Control {
this.sender = data.send;
this.closer = data.close;
this.closed = false;
this.echoEnabled = true;
this.localEchoEnabled = true;
this.subs = new subscribe.Subscribe();
this.enable = false;
this.windowDim = {
Expand All @@ -336,13 +336,7 @@ class Control {
},
{
setEcho(newVal) {
if (newVal) {
self.echoEnabled = false;

return;
}

self.echoEnabled = true;
self.localEchoEnabled = !newVal;
},
getWindowDim() {
return self.windowDim;
Expand Down Expand Up @@ -373,7 +367,7 @@ class Control {
}

echo() {
return this.echoEnabled;
return this.localEchoEnabled;
}

resize(dim) {
Expand Down

0 comments on commit c9f3860

Please sign in to comment.