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

Function extractSignalValuesFromView

docs/app/js/sanddance-app.js:10924–10936  ·  view source on GitHub ↗
(view, spec)

Source from the content-addressed store, hash-verified

10922 }
10923}
10924function extractSignalValuesFromView(view, spec) {
10925 if (!view || !spec || !spec.signals || !spec.signals.length) return;
10926 const result = {};
10927 spec.signals.forEach((signalA)=>{
10928 //bound to a UI control
10929 if (signalA.bind) try {
10930 result[signalA.name] = view.signal(signalA.name);
10931 } catch (e) {
10932 // continue regardless of error
10933 }
10934 });
10935 return result;
10936}
10937
10938},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"hJJ3c":[function(require,module,exports) {
10939var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.45
signalMethod · 0.45

Tested by

no test coverage detected