diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index e694ee8e3..543d5fed7 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -515,7 +515,7 @@ populate: function (items) { this._assertPopupView(); this.popupView.populate.apply(this.popupView, arguments); - this.combo.populate.apply(this.combo, arguments); + this.combo.populate && this.combo.populate.apply(this.combo, arguments); }, _setEnable: function (arg) { diff --git a/src/base/single/trigger/trigger.js b/src/base/single/trigger/trigger.js index d281290d4..8c881bf6f 100644 --- a/src/base/single/trigger/trigger.js +++ b/src/base/single/trigger/trigger.js @@ -24,7 +24,4 @@ BI.Trigger = BI.inherit(BI.Single, { getKey: function () { }, - populate: function () { - - } }); \ No newline at end of file diff --git a/src/core/widget.js b/src/core/widget.js index 0af5b6d90..42628f1d4 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -565,7 +565,7 @@ }, // 默认的populate方法就是干掉重来 - populate: function () { + reset: function () { this.purgeListeners(); this.empty(); this._initCurrent();