From 8906a754a8d76413cf69aff9a0d0f1288a710fe9 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 20 Sep 2021 11:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=8A=A8watch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 14397ca2e..318c48daf 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -200,9 +200,9 @@ }, __watch: function (getter, handler, options) { - if (Fix.Model.target) { + if (_global.Fix) { this._watchers = this._watchers || []; - var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options); + var watcher = new Fix.Watcher(null, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options); this._watchers.push(watcher); return watcher.value; } else {