@ -43,7 +43,8 @@
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
// 延迟绑定事件,这样可以将自己绑定的事情优先执行
BI.nextTick(this._initPullDownAction.bind(this));
this.combo.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
if (self.isEnabled() && self.isValid()) {
if (type === BI.Events.EXPAND) {
@ -25,7 +25,8 @@ BI.Expander = BI.inherit(BI.Widget, {
this._expanded = !!o.el.open;
this._initExpander();
this.expander.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
@ -25,7 +25,8 @@ BI.Switcher = BI.inherit(BI.Widget, {
this._initSwitcher();
this.switcher.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
@ -44,7 +44,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
if (this.options.selected === true) {
this.setSelected(true);
}
this.bindEvent();
BI.nextTick(this.bindEvent.bind(this));
BI.BasicButton.superclass._initRef.apply(this, arguments);
},