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

Function dispatch

docs/app/js/sanddance-app.js:136532–136538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136530 value: ()=>{}
136531};
136532function dispatch() {
136533 for(var i = 0, n = arguments.length, _ = {}, t; i < n; ++i){
136534 if (!(t = arguments[i] + "") || t in _ || /[\s.]/.test(t)) throw new Error("illegal type: " + t);
136535 _[t] = [];
136536 }
136537 return new Dispatch(_);
136538}
136539function Dispatch(_) {
136540 this._ = _;
136541}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected