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

Method getHandlerCount

src/core/data-structures/observable.js:71–73  ·  view source on GitHub ↗

* Returns number of handlers. Mostly needed for tests. * @return {number}

()

Source from the content-addressed store, hash-verified

69 * @return {number}
70 */
71 getHandlerCount() {
72 return this.handlers_?.length ?? 0;
73 }
74}

Callers 12

test-ampdoc.jsFile · 0.80
addEventListenerFunction · 0.80
addMethod · 0.80
test-amp-access.jsFile · 0.80
removeScrollHandlerMethod · 0.80
addScrollHandlerMethod · 0.80
test-events.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected