Browse Source

增加组件默认populate方法

es6
guy 4 years ago
parent
commit
d48599e23a
  1. 7
      src/core/widget.js

7
src/core/widget.js

@ -559,6 +559,13 @@
this.element.empty(); this.element.empty();
}, },
// 默认的populate方法就是干掉重来
populate: function () {
this.empty();
this.purgeListeners();
this._init();
},
_destroy: function () { _destroy: function () {
this.__d(); this.__d();
this.element.destroy(); this.element.destroy();

Loading…
Cancel
Save