lib/client: bind handleOnline to this
It's used as a callback to removeEventListener().
This commit is contained in:
1 parent
4bce52f162
commit
977752e0f2
1 file changed
+2
@@ -148,6 +148,8 @@ export default class Client extends EventTarget {
|
|||||||
constructor(params) {
|
constructor(params) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
this.handleOneline = this.handleOnline.bind(this);
|
||||||
|
|
||||||
this.params = { ...this.params, ...params };
|
this.params = { ...this.params, ...params };
|
||||||
|
|
||||||
this.reconnect();
|
this.reconnect();
|
||||||
|
|||||||
Reference in new issue
Block a user