This commit is contained in:
NI
2019-09-11 12:57:13 +08:00
parent 6585810cc4
commit c9f3860d00

View File

@@ -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) {