mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
bind instead of second member var
This commit is contained in:
parent
3552326003
commit
eb1ee1ca55
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ export class Resizer {
|
||||||
vertical: "resizer-vertical",
|
vertical: "resizer-vertical",
|
||||||
resizing: "resizer-resizing",
|
resizing: "resizer-resizing",
|
||||||
};
|
};
|
||||||
this.mouseDownHandler = (event) => this._onMouseDown(event);
|
this._onMouseDown = this._onMouseDown.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
setClassNames(classNames) {
|
setClassNames(classNames) {
|
||||||
|
@ -48,11 +48,11 @@ export class Resizer {
|
||||||
}
|
}
|
||||||
|
|
||||||
attach() {
|
attach() {
|
||||||
this.container.addEventListener("mousedown", this.mouseDownHandler, false);
|
this.container.addEventListener("mousedown", this._onMouseDown, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
detach() {
|
detach() {
|
||||||
this.container.removeEventListener("mousedown", this.mouseDownHandler, false);
|
this.container.removeEventListener("mousedown", this._onMouseDown, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue