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

Function handler

test/unit/utils/test-event-helper.js:77–80  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

75 const event = getEvent('load', element);
76 let c = 0;
77 const handler = (e) => {
78 c++;
79 expect(e).to.equal(event);
80 };
81 const unlisten = listen(element, 'load', handler);
82
83 // Not fired yet.

Callers

nothing calls this directly

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected