* Delegate method to perform operator processing. * Subclasses can override this method to perform custom processing. * By default, it marshalls parameters and calls the update function * if that function is defined. If the update function does not * change the operator value then StopPr
(pulse2)
| 107627 | * @return The output pulse or StopPropagation. A falsy return value |
| 107628 | * (including undefined) will let the input pulse pass through. |
| 107629 | */ evaluate (pulse2) { |
| 107630 | const update2 = this._update; |
| 107631 | if (update2) { |
| 107632 | const params = this.marshall(pulse2.stamp), v = update2.call(this, params, pulse2); |
| 107633 | params.clear(); |
| 107634 | if (v !== this.value) this.value = v; |
| 107635 | else if (!this.modified()) return pulse2.StopPropagation; |
| 107636 | } |
| 107637 | }, |
| 107638 | /** |
| 107639 | * Run this operator for the current pulse. If this operator has already |
| 107640 | * been run at (or after) the pulse timestamp, returns StopPropagation. |
nothing calls this directly
no test coverage detected