Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
refs #9: Fix reference to removed variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Feb 13, 2017
1 parent 1f93332 commit 251bf39
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions assets/js/webterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ class Webterm {
};

this._sock.onerror = (e) => {
if (this.streamOnHandlers["error"])
this.streamOnHandlers["error"].apply(writable);
if (!is_settled) {
is_settled = true;
this._connecting = false;
Expand All @@ -156,12 +154,6 @@ class Webterm {
this._sock.onclose = (e) => {
this._connecting = false;
this._connected = false;
if (this.streamOnHandlers["close"])
this.streamOnHandlers["close"].apply(writable);
if (this.streamOnceHandlers["close"]) {
this.streamOnceHandlers["close"].apply(writable);
this.streamOnceHandlers["close"] = undefined;
}
if (!is_settled) {
is_settled = true;
reject('connection failure');
Expand Down

0 comments on commit 251bf39

Please sign in to comment.