|
|
@ -299,7 +299,7 @@ |
|
|
|
_initVisual: function () { |
|
|
|
_initVisual: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
if (o.invisible) { |
|
|
|
if (o.invisible) { |
|
|
|
var invisible = BI.isFunction(o.invisible) ? this.__watch(o.invisible, function (context, newValue) { |
|
|
|
var invisible = o.invisible = BI.isFunction(o.invisible) ? this.__watch(o.invisible, function (context, newValue) { |
|
|
|
self.setVisible(!newValue); |
|
|
|
self.setVisible(!newValue); |
|
|
|
}) : o.invisible; |
|
|
|
}) : o.invisible; |
|
|
|
if (invisible) { |
|
|
|
if (invisible) { |
|
|
@ -313,7 +313,7 @@ |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
if (o.disabled || o.invalid) { |
|
|
|
if (o.disabled || o.invalid) { |
|
|
|
if (this.options.disabled) { |
|
|
|
if (this.options.disabled) { |
|
|
|
var disabled = BI.isFunction(o.disabled) ? this.__watch(o.disabled, function (context, newValue) { |
|
|
|
var disabled = o.disabled = BI.isFunction(o.disabled) ? this.__watch(o.disabled, function (context, newValue) { |
|
|
|
self.setEnable(!newValue); |
|
|
|
self.setEnable(!newValue); |
|
|
|
}) : o.disabled; |
|
|
|
}) : o.disabled; |
|
|
|
if (disabled) { |
|
|
|
if (disabled) { |
|
|
@ -321,7 +321,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.options.invalid) { |
|
|
|
if (this.options.invalid) { |
|
|
|
var invalid = BI.isFunction(o.invalid) ? this.__watch(o.invalid, function (context, newValue) { |
|
|
|
var invalid = o.invalid = BI.isFunction(o.invalid) ? this.__watch(o.invalid, function (context, newValue) { |
|
|
|
self.setValid(!newValue); |
|
|
|
self.setValid(!newValue); |
|
|
|
}) : o.invalid; |
|
|
|
}) : o.invalid; |
|
|
|
if (invalid) { |
|
|
|
if (invalid) { |
|
|
|