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

Method constructor

src/polyfills/custom-elements.js:96–105  ·  view source on GitHub ↗

* @param {!Window} win * @param {!Registry} registry

(win, registry)

Source from the content-addressed store, hash-verified

94 * @param {!Registry} registry
95 */
96 constructor(win, registry) {
97 /** @const @private */
98 this.win_ = win;
99
100 /** @const @private */
101 this.registry_ = registry;
102
103 /** @private @const @type {!{[key: string]: !Deferred}} */
104 this.pendingDefines_ = map();
105 }
106
107 /**
108 * Register the custom element.

Callers

nothing calls this directly

Calls 1

mapFunction · 0.90

Tested by

no test coverage detected