From 32685f14ce9c689c22ebbd7de96ce9d7addee9da Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 20 Sep 2021 02:38:24 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 56ad3a02a..14397ca2e 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -202,7 +202,7 @@ __watch: function (getter, handler, options) { if (Fix.Model.target) { this._watchers = this._watchers || []; - var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), handler || BI.emptyFn, options); + var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options); this._watchers.push(watcher); return watcher.value; } else {