MCPcopy Create free account
hub / github.com/cfworker/cfworker / on

Method on

packages/dev/src/runtime/html-rewriter.js:20–23  ·  view source on GitHub ↗

* @param {string} selector * @param {ElementHandler} handler * @returns {HTMLRewriter}

(selector, handler)

Source from the content-addressed store, hash-verified

18 * @returns {HTMLRewriter}
19 */
20 on(selector, handler) {
21 this._elements.push({ selector, handler });
22 return this;
23 }
24
25 /**
26 * @param {DocumentHandler} handler

Callers 15

assertWatchesForChangesFunction · 0.80
assertCanServeStaticSiteFunction · 0.80
index.jsFile · 0.80
initMethod · 0.80
readMethod · 0.80
bundleMethod · 0.80
initMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by 6

assertWatchesForChangesFunction · 0.64
assertCanServeStaticSiteFunction · 0.64