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

Method constructor

src/service/extensions-impl.js:97–115  ·  view source on GitHub ↗

* @param {!Window} win

(win)

Source from the content-addressed store, hash-verified

95 * @param {!Window} win
96 */
97 constructor(win) {
98 /** @const {!Window} */
99 this.win = win;
100
101 /** @const @private */
102 this.ampdocService_ = Services.ampdocServiceFor(win);
103
104 /** @private @const {!{[key: string]: !ExtensionHolderDef}} */
105 this.extensions_ = {};
106
107 /** @private {?string} */
108 this.currentExtensionId_ = null;
109
110 /** @private {?string} */
111 this.currentExtensionVersion_ = null;
112
113 /** @private {?boolean} */
114 this.currentExtensionLatest_ = null;
115 }
116
117 /**
118 * Register and process the specified extension. The factory is called

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected