From 4411a69ab9c272c3412219dd015db3d45bca216d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B9=85=E9=B9=85=E9=B9=85?= <1977474741@qq.com> Date: Wed, 6 Dec 2023 09:04:29 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=92=A9=E5=AD=90cycl?= =?UTF-8?q?eEnd=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/spa-custom-hooks/hook-entity.js | 2 +- rollup.config.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'], }, ], ],