From cf2168d618b73b270bddf1e4559f29d42297aac6 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 7 Jun 2017 11:24:43 +0800 Subject: [PATCH] add --- bi/base.js | 2 +- docs/base.js | 2 +- src/base/single/button/button.basic.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bi/base.js b/bi/base.js index 9aa2a6024..c5c7353c3 100644 --- a/bi/base.js +++ b/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; diff --git a/docs/base.js b/docs/base.js index 9aa2a6024..c5c7353c3 100644 --- a/docs/base.js +++ b/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; diff --git a/src/base/single/button/button.basic.js b/src/base/single/button/button.basic.js index c5de615f5..db0e4b3ab 100644 --- a/src/base/single/button/button.basic.js +++ b/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;