Skip to content

Commit

Permalink
Fix error on willDestroyElement when running in fastboot
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarluedke committed Feb 21, 2018
1 parent 5f0754f commit 1c38712
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addon/components/ember-tether.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export default Component.extend({

willDestroyElement() {
this._super(...arguments);
if (!this._tether) return;

let { _tether, element } = this;
run.schedule('render', () => {
this.removeElement(element);
Expand Down

0 comments on commit 1c38712

Please sign in to comment.