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

Method constructor

src/multidoc-manager.js:39–51  ·  view source on GitHub ↗

* @param {!Window} win * @param {!./service/ampdoc-impl.AmpDocService} ampdocService * @param {!./service/extensions-impl.Extensions} extensions * @param {!./service/timer-impl.Timer} timer

(win, ampdocService, extensions, timer)

Source from the content-addressed store, hash-verified

37 * @param {!./service/timer-impl.Timer} timer
38 */
39 constructor(win, ampdocService, extensions, timer) {
40 /** @const */
41 this.win = win;
42 /** @private @const */
43 this.ampdocService_ = ampdocService;
44 /** @private @const */
45 this.extensions_ = extensions;
46 /** @private @const */
47 this.timer_ = timer;
48
49 /** @private @const {!Array<!ShadowRoot>} */
50 this.shadowRoots_ = [];
51 }
52
53 /**
54 * Attaches the shadow root and calls the supplied DOM builder.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected