From 1c387123047cb7b6c8878217a2bf36570b8ef942 Mon Sep 17 00:00:00 2001 From: Josemar Luedke Date: Tue, 20 Feb 2018 16:41:55 -0800 Subject: [PATCH] Fix error on willDestroyElement when running in fastboot --- addon/components/ember-tether.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/components/ember-tether.js b/addon/components/ember-tether.js index 9a1fa51..794aad5 100644 --- a/addon/components/ember-tether.js +++ b/addon/components/ember-tether.js @@ -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);