Clean up
This commit is contained in:
@@ -319,7 +319,7 @@ class Control {
|
|||||||
this.sender = data.send;
|
this.sender = data.send;
|
||||||
this.closer = data.close;
|
this.closer = data.close;
|
||||||
this.closed = false;
|
this.closed = false;
|
||||||
this.echoEnabled = true;
|
this.localEchoEnabled = true;
|
||||||
this.subs = new subscribe.Subscribe();
|
this.subs = new subscribe.Subscribe();
|
||||||
this.enable = false;
|
this.enable = false;
|
||||||
this.windowDim = {
|
this.windowDim = {
|
||||||
@@ -336,13 +336,7 @@ class Control {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
setEcho(newVal) {
|
setEcho(newVal) {
|
||||||
if (newVal) {
|
self.localEchoEnabled = !newVal;
|
||||||
self.echoEnabled = false;
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.echoEnabled = true;
|
|
||||||
},
|
},
|
||||||
getWindowDim() {
|
getWindowDim() {
|
||||||
return self.windowDim;
|
return self.windowDim;
|
||||||
@@ -373,7 +367,7 @@ class Control {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo() {
|
echo() {
|
||||||
return this.echoEnabled;
|
return this.localEchoEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
resize(dim) {
|
resize(dim) {
|
||||||
|
|||||||
Reference in New Issue
Block a user