天天看點

difference between view exit and view destroy

Control.prototype.destroy

_cleanupBusyIndicator();

sap.ui.core.ResizeHandler.deregisterAllForControl

this._busyIndicatorDelayedCallId

q.sap.clearDelayedCall

this._busyAnimationTimer1

clearTimeout(this._busyAnimationTimer1);

bSuppressInvalidate if true, the UI element is not marked for redraw

ManagedObject.prototype.destroy.call(this, bSuppressInvalidate);

this.$().remove(); // remove this control from DOM, e.g. if there is no parent

Inside view.destroy, it will call this.exit if this.exit exists.

in control.prototype.exit, this.oAfterRenderingNotifier.destroy();

in control.prototype.onControllerConnected, sap.ui.base.ManagedObject.runWithPreprocessors calls X.parseTemplate

In Core.js, Core.prototype.deregisterElement, delete this.mElements[oElement.getId()];

difference between view exit and view destroy
difference between view exit and view destroy
difference between view exit and view destroy

繼續閱讀