|
|
@ -797,7 +797,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
if (!self.isEnabled() || (self.isOnce() && self.isSelected())) { |
|
|
|
if (!self.isEnabled() || (self.isOnce() && self.isSelected())) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
onClick.apply(self); |
|
|
|
onClick.apply(self, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -816,13 +816,13 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_doClick: function () { |
|
|
|
_doClick: function (e) { |
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.beforeClick(); |
|
|
|
this.beforeClick(e); |
|
|
|
} |
|
|
|
} |
|
|
|
this._trigger(); |
|
|
|
this._trigger(); |
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.doClick(); |
|
|
|
this.doClick(e); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|