Use arrow function over .bind

This commit is contained in:
Daniel Gasienica 2018-04-12 20:19:16 -04:00
parent a86a596f34
commit ae419764bf

View file

@ -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);