MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / dispatch

Function dispatch

www/js/_hyperscript-max.js:11832–11843  ·  view source on GitHub ↗
(stub, eventType, evt)

Source from the content-addressed store, hash-verified

11830 }, timeout);
11831 }
11832 function dispatch(stub, eventType, evt) {
11833 for (var i = 0; i < stub.listeners.length; i++) {
11834 var listener = stub.listeners[i];
11835 if (matchesEventPattern(listener.type, eventType)) {
11836 try {
11837 listener.handler(evt);
11838 } catch (e) {
11839 console.error("Error in SSE handler for '" + listener.type + "':", e);
11840 }
11841 }
11842 }
11843 }
11844 function makeHandler(encoding, commandList, stub, feature) {
11845 return function(evt) {
11846 var data = decode(evt.data, encoding);

Callers 3

createStubFunction · 0.70
startConnectionFunction · 0.70
readStreamFunction · 0.70

Calls 2

matchesEventPatternFunction · 0.70
handlerMethod · 0.45

Tested by

no test coverage detected