MCPcopy Create free account
hub / github.com/ampproject/amphtml / sendEvent

Function sendEvent

test/unit/test-pull-to-refresh.js:34–38  ·  view source on GitHub ↗
(event, opt_prevetDefault)

Source from the content-addressed store, hash-verified

32 });
33
34 function sendEvent(event, opt_prevetDefault) {
35 event.preventDefault = opt_prevetDefault || (() => {});
36 event.stopPropagation = () => {};
37 eventListeners[event.type](event);
38 }
39
40 it('should only subscribe to touchstart initially', () => {
41 expect(eventListeners['touchstart']).to.not.equal(undefined);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected