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

Method constructor

extensions/amp-analytics/0.1/config.js:25–56  ·  view source on GitHub ↗

* @param {!Element} element

(element)

Source from the content-addressed store, hash-verified

23 * @param {!Element} element
24 */
25 constructor(element) {
26 /** @private {!Element} */
27 this.element_ = element;
28
29 /** @private {?Window} */
30 this.win_ = null;
31
32 /**
33 * @const {!JsonObject}
34 * @private
35 */
36 this.defaultConfig_ = DEFAULT_CONFIG || {};
37
38 /** @private {!JsonObject} */
39 this.vendorConfig_ = {};
40
41 /**
42 * @private {JsonObject}
43 */
44 this.config_ = {};
45
46 /**
47 * @private {JsonObject}
48 */
49 this.remoteConfig_ = {};
50
51 /** @private {boolean} */
52 this.isSandbox_ = false;
53
54 /** @private {!./variables.VariableService} */
55 this.variableService_ = variableServiceForDoc(element);
56 }
57
58 /**
59 * @return {!Promise<JsonObject>}

Callers

nothing calls this directly

Calls 1

variableServiceForDocFunction · 0.90

Tested by

no test coverage detected