* Detach this operator from the dataflow. * Unregisters listeners on upstream dependencies.
()
| 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. |