diff --git a/src/case/combo/bubblecombo/popup.bubble.js b/src/case/combo/bubblecombo/popup.bubble.js index fdcba8144..c4514128e 100644 --- a/src/case/combo/bubblecombo/popup.bubble.js +++ b/src/case/combo/bubblecombo/popup.bubble.js @@ -31,7 +31,7 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, { buttons: [{ value: false, text: BI.i18nText("BI-Basic_Cancel"), - ghost: true + level: "ignore" }, { text: BI.i18nText(BI.i18nText("BI-Basic_OK")), value: true diff --git a/src/core/3.ob.js b/src/core/3.ob.js index 9eab5d35a..6eb2b53cd 100644 --- a/src/core/3.ob.js +++ b/src/core/3.ob.js @@ -62,9 +62,12 @@ _initListeners: function () { var self = this; if (this.options.listeners != null) { - _.each(this.options.listeners, function (lis) { - (lis.target ? lis.target : self)[lis.once ? "once" : "on"] - (lis.eventName, _.bind(lis.action, self)); + _.each(this.options.listeners, function (lis, eventName) { + if (_.isFunction(lis)) { + self.on(eventName, lis); + return; + } + (lis.target ? lis.target : self)[lis.once ? "once" : "on"](lis.eventName, lis.action); }); delete this.options.listeners; }