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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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