diff --git a/src/base/combination/expander.js b/src/base/combination/expander.js index 58c3ed70b..4e6ab7b58 100644 --- a/src/base/combination/expander.js +++ b/src/base/combination/expander.js @@ -197,7 +197,7 @@ BI.Expander = BI.inherit(BI.Widget, { populate: function (items) { // this._assertPopupView(); this.popupView && this.popupView.populate.apply(this.popupView, arguments); - this.expander.populate.apply(this.expander, arguments); + this.expander.populate && this.expander.populate.apply(this.expander, arguments); }, _setEnable: function (arg) { diff --git a/src/base/combination/switcher.js b/src/base/combination/switcher.js index e3a73bcda..cdaaf88de 100644 --- a/src/base/combination/switcher.js +++ b/src/base/combination/switcher.js @@ -194,7 +194,7 @@ BI.Switcher = BI.inherit(BI.Widget, { populate: function (items) { this._assertPopupView(); this.popupView.populate.apply(this.popupView, arguments); - this.switcher.populate.apply(this.switcher, arguments); + this.switcher.populate && this.switcher.populate.apply(this.switcher, arguments); }, _setEnable: function (arg) {