From 791e952ae7bb649de9152dfdc8c1f996ca11628b Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 9 Mar 2021 15:17:19 +0800 Subject: [PATCH] expander && switcher --- src/base/combination/expander.js | 2 +- src/base/combination/switcher.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {