Browse Source

BI-73305 fix: single销毁的时候title没有移除

es6
windy 4 years ago
parent
commit
3876d9769d
  1. 5
      src/base/single/single.js
  2. 1
      src/core/widget.js

5
src/base/single/single.js

@ -200,12 +200,11 @@ BI.Single = BI.inherit(BI.Widget, {
return this.options.value; return this.options.value;
}, },
_unMount: function () { destroyed: function () {
BI.Single.superclass._unMount.apply(this, arguments);
if (BI.isNotNull(this.showTimeout)) { if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout); clearTimeout(this.showTimeout);
this.showTimeout = null; this.showTimeout = null;
} }
BI.Tooltips.remove(this.getName()); BI.Tooltips.remove(this.getName());
} },
}); });

1
src/core/widget.js

@ -486,6 +486,7 @@
destroy: function () { destroy: function () {
this.__d(); this.__d();
this.element.destroy(); this.element.destroy();
this.fireEvent(BI.Events.UNMOUNT);
this.fireEvent(BI.Events.DESTROY); this.fireEvent(BI.Events.DESTROY);
this._purgeRef(); this._purgeRef();
this.purgeListeners(); this.purgeListeners();

Loading…
Cancel
Save