From b9bdc625aacb90f03edfd578448bb59513e627ab Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 7 Dec 2021 19:25:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81BI.useContext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index fcd71aab3..7fc406f3e 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -772,7 +772,7 @@ return BI.Model.target; }; - BI.watch = function (vm, watch, handler, options) { + BI.watch = function (vm, watch, handler) { if (BI.Widget.current) { options = options || {}; if (vm instanceof BI.Model) { @@ -786,14 +786,14 @@ var handler = watch[key]; if (BI.isArray(handler)) { for (var i = 0; i < handler.length; i++) { - BI.Widget.current._watchers.push(Fix.watch(vm.model, key, handler, BI.extend(options, { - store: vm.store - }))); + BI.Widget.current._watchers.push(Fix.watch(vm.model, key, handler, { + store: vm + })); } } else { - BI.Widget.current._watchers.push(Fix.watch(vm.model, key, handler, BI.extend(options, { - store: vm.store - }))); + BI.Widget.current._watchers.push(Fix.watch(vm.model, key, handler, { + store: vm + })); } } } else {