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

Function eventBundle

docs/app/js/sanddance-app.js:123600–123606  ·  view source on GitHub ↗
(type10)

Source from the content-addressed store, hash-verified

123598 this._events = {};
123599}
123600const eventBundle = (type10)=>type10 === TouchStartEvent || type10 === TouchMoveEvent || type10 === TouchEndEvent ? [
123601 TouchStartEvent,
123602 TouchMoveEvent,
123603 TouchEndEvent
123604 ] : [
123605 type10
123606 ]; // lazily add listeners to the canvas as needed
123607function eventListenerCheck(handler, type11) {
123608 eventBundle(type11).forEach((_)=>addEventListener(handler, _));
123609}

Callers 1

eventListenerCheckFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected