* Parse an event-driven operator update.
(spec)
| 146615 | /** |
| 146616 | * Parse an event-driven operator update. |
| 146617 | */ function parseUpdate(spec) { |
| 146618 | var ctx = this, srcid = (0, _vegaUtil.isObject)(srcid = spec.source) ? srcid.$ref : srcid, source = ctx.get(srcid), target = null, update = spec.update, params = undefined; |
| 146619 | if (!source) (0, _vegaUtil.error)("Source not defined: " + spec.source); |
| 146620 | target = spec.target && spec.target.$expr ? ctx.eventExpression(spec.target.$expr) : ctx.get(spec.target); |
| 146621 | if (update && update.$expr) { |
| 146622 | if (update.$params) params = ctx.parseParameters(update.$params); |
| 146623 | update = ctx.handlerExpression(update.$expr); |
| 146624 | } |
| 146625 | ctx.update(spec, source, target, update, params); |
| 146626 | } |
| 146627 | const SKIP = { |
| 146628 | skip: true |
| 146629 | }; |
no test coverage detected