|
|
@ -25,7 +25,8 @@ BI.Expander = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this._expanded = !!o.el.open; |
|
|
|
this._expanded = !!o.el.open; |
|
|
|
this._initExpander(); |
|
|
|
this._initExpander(); |
|
|
|
this._initPullDownAction(); |
|
|
|
// 延迟绑定事件,这样可以将自己绑定的事情优先执行
|
|
|
|
|
|
|
|
BI.nextTick(this._initPullDownAction.bind(this)); |
|
|
|
this.expander.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
|
|
|
this.expander.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
|
|
|
if (self.isEnabled() && self.isValid()) { |
|
|
|
if (self.isEnabled() && self.isValid()) { |
|
|
|
if (type === BI.Events.EXPAND) { |
|
|
|
if (type === BI.Events.EXPAND) { |
|
|
|