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

2
bi/base.js

@ -710,7 +710,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
$(document).bind("mouseup." + self.getName(), function (e) {
// if (e.button === 0) {
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) {
self.setSelected(!self.isSelected());
// self.setSelected(!self.isSelected());
self._trigger();
}
mouseDown = false;

2
docs/base.js

@ -710,7 +710,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
$(document).bind("mouseup." + self.getName(), function (e) {
// if (e.button === 0) {
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) {
self.setSelected(!self.isSelected());
// self.setSelected(!self.isSelected());
self._trigger();
}
mouseDown = false;

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

@ -127,7 +127,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
$(document).bind("mouseup." + self.getName(), function (e) {
// if (e.button === 0) {
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) {
self.setSelected(!self.isSelected());
// self.setSelected(!self.isSelected());
self._trigger();
}
mouseDown = false;

Loading…
Cancel
Save