Use arrow function over .bind
This commit is contained in:
parent
a86a596f34
commit
ae419764bf
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@
|
|||
const view = new window.Whisper.ReactWrapper({
|
||||
Component: MediaGallery,
|
||||
props,
|
||||
onClose: this.resetPanel.bind(this),
|
||||
onClose: () => this.resetPanel(),
|
||||
});
|
||||
|
||||
this.listenBack(view);
|
||||
|
|
Loading…
Reference in a new issue