guy 8 years ago
parent
commit
cb298712ab
  1. 8
      bi/base.js
  2. 8
      docs/base.js
  3. 8
      src/base/single/button/button.basic.js

8
bi/base.js

@ -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);
} }
}, },

8
docs/base.js

@ -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);
} }
}, },

8
src/base/single/button/button.basic.js

@ -214,7 +214,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);
} }
}, },
@ -233,13 +233,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);
} }
}, },

Loading…
Cancel
Save