MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / destroyNode

Function destroyNode

packages/core/ui/core/view-base/index.ts:1265–1269  ·  view source on GitHub ↗

* Tears down the UI of a reusable node by making it no longer reusable. * @see _tearDownUI * @param forceDestroyChildren Force destroy the children (even if they are reusable)

(forceDestroyChildren?: boolean)

Source from the content-addressed store, hash-verified

1263 * @param forceDestroyChildren Force destroy the children (even if they are reusable)
1264 */
1265 public destroyNode(forceDestroyChildren?: boolean): void {
1266 this.reusable = false;
1267 this.callUnloaded();
1268 this._tearDownUI(forceDestroyChildren);
1269 }
1270
1271 /**
1272 * Tears down the UI for ViewBase and all its children recursively.

Callers

nothing calls this directly

Calls 1

_tearDownUIMethod · 0.80

Tested by

no test coverage detected