Use arrow function over .bind
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user