Browse Source

更改widget reset方法

master
windy 4 years ago
parent
commit
ad7fcee945
  1. 2
      src/base/combination/combo.js
  2. 3
      src/base/single/trigger/trigger.js
  3. 2
      src/core/widget.js

2
src/base/combination/combo.js

@ -515,7 +515,7 @@
populate: function (items) { populate: function (items) {
this._assertPopupView(); this._assertPopupView();
this.popupView.populate.apply(this.popupView, arguments); 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) { _setEnable: function (arg) {

3
src/base/single/trigger/trigger.js

@ -24,7 +24,4 @@ BI.Trigger = BI.inherit(BI.Single, {
getKey: function () { getKey: function () {
}, },
populate: function () {
}
}); });

2
src/core/widget.js

@ -565,7 +565,7 @@
}, },
// 默认的populate方法就是干掉重来 // 默认的populate方法就是干掉重来
populate: function () { reset: function () {
this.purgeListeners(); this.purgeListeners();
this.empty(); this.empty();
this._initCurrent(); this._initCurrent();

Loading…
Cancel
Save