MCPcopy Create free account
hub / github.com/pulsar-edit/pulsar / destroy

Method destroy

packages/git-diff/lib/git-diff-view.js:44–48  ·  view source on GitHub ↗

* @describe Handles tear down of destructables and subscriptions. * Does not handle release of memory. This method should only be called * just before this object is freed, and should only tear down the main * object components that are guarunteed to exist at all times.

()

Source from the content-addressed store, hash-verified

42 * object components that are guarunteed to exist at all times.
43 */
44 destroy() {
45 this.subscriptions.dispose();
46 this.destroyChildren();
47 this.markers.clear();
48 }
49
50 /**
51 * @describe Destroys this objects children (non-freeing), it's intended

Callers 1

activateFunction · 0.95

Calls 3

destroyChildrenMethod · 0.95
disposeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected