MCPcopy
hub / github.com/ampproject/amphtml / constructor

Method constructor

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

* @param {!../model/doc.Doc} doc

(doc)

Source from the content-addressed store, hash-verified

11380 * @param {!../model/doc.Doc} doc
11381 */
11382 constructor(doc) {
11383 /** @private @const {!../model/doc.Doc} */
11384 this.doc_ = doc;
11385
11386 /** @private {?Dialog} */
11387 this.dialog_ = null;
11388
11389 /** @private {?Promise<!Dialog>} */
11390 this.openPromise_ = null;
11391
11392 /** @private @const {!Graypane} */
11393 this.popupGraypane_ = new Graypane$1(doc, POPUP_Z_INDEX);
11394
11395 /** @private {?Window} */
11396 this.popupWin_ = null;
11397
11398 this.popupGraypane_.getElement().addEventListener('click', () => {
11399 if (this.popupWin_) {
11400 try {
11401 this.popupWin_.focus();
11402 } catch (e) {
11403 // Ignore error.
11404 }
11405 }
11406 });
11407 }
11408
11409 /**
11410 * @param {boolean=} hidden

Callers

nothing calls this directly

Calls 2

addEventListenerMethod · 0.45
getElementMethod · 0.45

Tested by

no test coverage detected