DEV: fixes deprecation due to incorrect appEvent setup on share:url (#8122)

This commit is contained in:
Joffrey JAFFEUX
2019-10-01 22:17:38 +02:00
committed by GitHub
parent f82576deea
commit a5af98a149

View File

@@ -170,7 +170,7 @@ export default Ember.Component.extend({
) )
.on("keydown.share-view", this._boundKeydownHandler); .on("keydown.share-view", this._boundKeydownHandler);
this.appEvents.on("share:url", this._shareUrlHandler); this.appEvents.on("share:url", this, "_shareUrlHandler");
}, },
willDestroyElement() { willDestroyElement() {
@@ -181,7 +181,7 @@ export default Ember.Component.extend({
.off("mousedown.outside-share-link", this._boundMouseDownHandler) .off("mousedown.outside-share-link", this._boundMouseDownHandler)
.off("keydown.share-view", this._boundKeydownHandler); .off("keydown.share-view", this._boundKeydownHandler);
this.appEvents.off("share:url", this._shareUrlHandler); this.appEvents.off("share:url", this, "_shareUrlHandler");
}, },
actions: { actions: {