MCPcopy
hub / github.com/microsoft/SandDance / detach

Function detach

docs/app/js/sanddance-app.js:107606–107618  ·  view source on GitHub ↗

* Detach this operator from the dataflow. * Unregisters listeners on upstream dependencies.

()

Source from the content-addressed store, hash-verified

107604 * Detach this operator from the dataflow.
107605 * Unregisters listeners on upstream dependencies.
107606 */ detach () {
107607 const argops = this._argops;
107608 let i, n, item, op;
107609 if (argops) for(i = 0, n = argops.length; i < n; ++i){
107610 item = argops[i];
107611 op = item.op;
107612 if (op._targets) op._targets.remove(this);
107613 }
107614 // remove references to the source and pulse object,
107615 // if present, to prevent memory leaks of old data.
107616 this.pulse = null;
107617 this.source = null;
107618 },
107619 /**
107620 * Delegate method to perform operator processing.
107621 * Subclasses can override this method to perform custom processing.

Callers 1

cleanFunction · 0.70

Calls 2

removeMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected