@ -13,8 +13,8 @@ Demo.Main = BI.inherit(BI.Widget, {
type: "demo.north",
listeners: [{
eventName: Demo.North.EVENT_VALUE_CHANGE,
action: function () {
center.setValue(0);
action: function (v) {
center.setValue(v);
}
}]
@ -13,7 +13,7 @@ Demo.North = BI.inherit(BI.Widget, {
eventName: BI.Button.EVENT_CHANGE,
self.fireEvent(Demo.North.EVENT_VALUE_CHANGE, 0)
self.fireEvent(Demo.North.EVENT_VALUE_CHANGE, "demo.face")
}],
cls: "logo",
@ -14244,11 +14244,15 @@ BI.Widget = BI.inherit(BI.OB, {
if (o.invisible) {
this.element.hide();
if (o.disabled) {
this.element.addClass("base-disabled disabled");
if (o.disabled || o.invalid) {
BI.nextTick(BI.bind(function () {
if (this.options.disabled) {
this.setEnable(false);
if (o.invalid) {
this.element.addClass("base-invalid invalid");
if (this.options.invalid) {
this.setValid(false);
}, this));
},
@ -106,11 +106,15 @@ BI.Widget = BI.inherit(BI.OB, {