MCPcopy Create free account
hub / github.com/joehewitt/scrollability / dispatch

Function dispatch

scrollability.js:779–790  ·  view source on GitHub ↗
(name, target, props)

Source from the content-addressed store, hash-verified

777}
778
779function dispatch(name, target, props) {
780 var e = document.createEvent("Events");
781 e.initEvent(name, false, true);
782
783 if (props) {
784 for (var name in props) {
785 e[name] = props[name];
786 }
787 }
788
789 return target.dispatchEvent(e);
790}

Callers 6

onTouchMoveFunction · 0.85
wrapAnimatorFunction · 0.85
takeoffFunction · 0.85
createTimelineFunction · 0.85
updateFunction · 0.85
terminexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected