Use arrow function over .bind
This commit is contained in:
@@ -656,7 +656,7 @@
|
||||
const view = new window.Whisper.ReactWrapper({
|
||||
Component: MediaGallery,
|
||||
props,
|
||||
onClose: this.resetPanel.bind(this),
|
||||
onClose: () => this.resetPanel(),
|
||||
});
|
||||
|
||||
this.listenBack(view);
|
||||
|
Reference in New Issue
Block a user