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

Method constructor

third_party/subscriptions-project/config.js:174–186  ·  view source on GitHub ↗

* @param {!Window|!Document} winOrDoc

(winOrDoc)

Source from the content-addressed store, hash-verified

172 * @param {!Window|!Document} winOrDoc
173 */
174 constructor(winOrDoc) {
175 const isWin = !!winOrDoc.document;
176 /** @private @const {!Window} */
177 this.win_ = /** @type {!Window} */ (
178 isWin
179 ? /** @type {!Window} */ (winOrDoc)
180 : /** @type {!Document} */ (winOrDoc).defaultView
181 );
182 /** @private @const {!Document} */
183 this.doc_ = isWin
184 ? /** @type {!Window} */ (winOrDoc).document
185 : /** @type {!Document} */ (winOrDoc);
186 }
187
188 /** @override */
189 getWin() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected