MCPcopy Create free account
hub / github.com/microsoft/SandDance / findOperatorHandler

Function findOperatorHandler

docs/app/js/sanddance-app.js:142493–142496  ·  view source on GitHub ↗
(op1, handler)

Source from the content-addressed store, hash-verified

142491 return (0, _vegaUtil.hasOwnProperty)(view._signals, name) ? view._signals[name] : (0, _vegaUtil.error)("Unrecognized signal name: " + (0, _vegaUtil.stringValue)(name));
142492}
142493function findOperatorHandler(op1, handler) {
142494 const h = (op1._targets || []).filter((op)=>op._update && op._update.handler === handler);
142495 return h.length ? h[0] : null;
142496}
142497function addOperatorListener(view, name, op, handler) {
142498 let h = findOperatorHandler(op, handler);
142499 if (!h) {

Callers 2

addOperatorListenerFunction · 0.70
removeOperatorListenerFunction · 0.70

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected