Browse Source

Merge pull request #479 in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '12611f7701267f618afd16b2020c6987d61651d3':
  update
es6
Dailer 6 years ago
parent
commit
41fbb79c41
  1. 2
      src/base/combination/expander.js
  2. 4
      src/widget/selecttree/selecttree.expander.js

2
src/base/combination/expander.js

@ -103,7 +103,7 @@ BI.Expander = BI.inherit(BI.Widget, {
}
});
break;
default :
case "click":
if (e) {
self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) {
if (self.expander.element.__isMouseInBounds__(e)) {

4
src/widget/selecttree/selecttree.expander.js

@ -7,7 +7,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-tree-expander",
trigger: "click",
trigger: "",
toggle: true,
direction: "bottom",
isDefaultInit: true,
@ -20,7 +20,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, {
BI.SelectTreeExpander.superclass._init.apply(this, arguments);
var self = this, o = this.options;
this.trigger = BI.createWidget(BI.extend({stopPropagation: true}, o.el));
this.trigger = BI.createWidget(o.el);
this.trigger.on(BI.Controller.EVENT_CHANGE, function (type) {
if (type === BI.Events.CLICK) {
if (this.isSelected()) {

Loading…
Cancel
Save