From d0d884e1f49b38df2f09cd9caa3a06a9ca0d9497 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 11 Mar 2022 14:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20bigfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 50dd3b661..7447ec6cf 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -299,7 +299,7 @@ _initVisual: function () { var self = this, o = this.options; if (o.invisible) { - var invisible = BI.isFunction(o.invisible) ? this.__watch(o.invisible, function (newValue) { + var invisible = BI.isFunction(o.invisible) ? this.__watch(o.invisible, function (context, newValue) { self.setVisible(!newValue); }) : o.invisible; if (invisible) { @@ -313,7 +313,7 @@ var self = this, o = this.options; if (o.disabled || o.invalid) { if (this.options.disabled) { - var disabled = BI.isFunction(o.disabled) ? this.__watch(o.disabled, function (newValue) { + var disabled = BI.isFunction(o.disabled) ? this.__watch(o.disabled, function (context, newValue) { self.setEnable(!newValue); }) : o.disabled; if (disabled) { @@ -321,7 +321,7 @@ } } if (this.options.invalid) { - var invalid = BI.isFunction(o.invalid) ? this.__watch(o.invalid, function (newValue) { + var invalid = BI.isFunction(o.invalid) ? this.__watch(o.invalid, function (context, newValue) { self.setEnable(!newValue); }) : o.invalid; if (invalid) {