Browse Source

chore: bugfix

es6
guy 3 years ago
parent
commit
72cab4136d
  1. 11
      src/core/4.widget.js

11
src/core/4.widget.js

@ -750,10 +750,19 @@
// }
// this._isMounted = false;
// this.purgeListeners();
// 去掉组件绑定的watcher
BI.each(this._watchers, function (i, unwatches) {
unwatches = BI.isArray(unwatches) ? unwatches : [unwatches];
BI.each(unwatches, function (j, unwatch) {
unwatch();
});
});
this._watchers && (this._watchers = []);
this.__d();
this.element.empty();
this.element.unbind();
// this._initCurrent();
this._initCurrent();
this._init();
// this._initRef();
},

Loading…
Cancel
Save