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

Method constructor

src/preact/bento-ce.js:40–45  ·  view source on GitHub ↗

* @param {Element} element

(element)

Source from the content-addressed store, hash-verified

38 * @param {Element} element
39 */
40 constructor(element) {
41 this.element = element;
42
43 /** @type {Window} */
44 this.win = getWin(element);
45 }
46
47 /**
48 * @param {function():undefined} cb

Callers

nothing calls this directly

Calls 1

getWinFunction · 0.90

Tested by

no test coverage detected