From ee07575804c5bb05ff20bfbca645caa1fed0363e Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 20 Sep 2021 15:44:02 +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, 3 insertions(+), 1 deletion(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index cdb9c213d..627128265 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -203,7 +203,9 @@ var self = this; if (_global.Fix) { this._watchers = this._watchers || []; - var watcher = new Fix.Watcher(null, BI.bind(getter, this), (handler && function () { + var watcher = new Fix.Watcher(null, function () { + return getter.call(self, self); + }, (handler && function () { handler.call(self, self); }) || BI.emptyFn, options); this._watchers.push(watcher);