diff --git a/lib/spa-custom-hooks/hook-entity.js b/lib/spa-custom-hooks/hook-entity.js index b0f3da5..29d1653 100644 --- a/lib/spa-custom-hooks/hook-entity.js +++ b/lib/spa-custom-hooks/hook-entity.js @@ -40,7 +40,7 @@ export default class hookEntity { cycleEnd() { if (!this.hit) return; this.hit = false; - this.__customhook && this.__customhook.resetExecute(this.destroy); + this.__customhook && this.destroy && this.__customhook.resetExecute(this.destroy); } watchAttr(cb) { try { diff --git a/rollup.config.mjs b/rollup.config.mjs index 88c50d7..ee7ab38 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -22,7 +22,7 @@ export default { [ '@babel/preset-env', { - targets: '> 0.1%, last 2 versions, Firefox ESR, not dead', + targets: ['IE >= 8'], }, ], ],