From b6dc01917e1aa57d24eddc0baaf23f034c016cc2 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 6 Mar 2022 19:12:40 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/fix/fix.js b/dist/fix/fix.js index 63ebd6374..6e1d60013 100644 --- a/dist/fix/fix.js +++ b/dist/fix/fix.js @@ -324,7 +324,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons uniq[name] = true; } } - //添加访问器属性 + //添加访问器属性 for (name in accessors) { if (uniq[name]) { continue; @@ -579,7 +579,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons // remove self from vm's watcher list // this is a somewhat expensive operation so we skip it // if the vm is being destroyed. - remove(this.vm._watchers, this); + remove(this.vm && this.vm._watchers, this); var i = this.deps.length; while (i--) { this.deps[i].removeSub(this); @@ -1532,4 +1532,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons exports.toJSON = toJSON; exports.__esModule = true; -}); \ No newline at end of file +});