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({
|
const view = new window.Whisper.ReactWrapper({
|
||||||
Component: MediaGallery,
|
Component: MediaGallery,
|
||||||
props,
|
props,
|
||||||
onClose: this.resetPanel.bind(this),
|
onClose: () => this.resetPanel(),
|
||||||
});
|
});
|
||||||
|
|
||||||
this.listenBack(view);
|
this.listenBack(view);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue