Skip to content

Commit

Permalink
Merge pull request #53 from josemarluedke/fix-fastboot-element
Browse files Browse the repository at this point in the history
Fix error on willDestroyElement when running in fastboot
  • Loading branch information
lukemelia authored Jun 10, 2018
2 parents ca0525b + 1c38712 commit 5356387
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 @@ -52,6 +52,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 5356387

Please sign in to comment.