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

Method constructor

third_party/subscriptions-project/swg.js:10665–10677  ·  view source on GitHub ↗

* @param {!Window|!Document} winOrDoc

(winOrDoc)

Source from the content-addressed store, hash-verified

10663 * @param {!Window|!Document} winOrDoc
10664 */
10665 constructor(winOrDoc) {
10666 const isWin = !!winOrDoc.document;
10667 /** @private @const {!Window} */
10668 this.win_ = /** @type {!Window} */ (
10669 isWin
10670 ? /** @type {!Window} */ (winOrDoc)
10671 : /** @type {!Document} */ (winOrDoc).defaultView
10672 );
10673 /** @private @const {!Document} */
10674 this.doc_ = isWin
10675 ? /** @type {!Window} */ (winOrDoc).document
10676 : /** @type {!Document} */ (winOrDoc);
10677 }
10678
10679 /** @override */
10680 getWin() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected