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

Method constructor

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

* @param {!{[key: string]: *}} vars * @param {number=} opt_iterations * @param {boolean=} opt_noEncode

(vars, opt_iterations, opt_noEncode)

Source from the content-addressed store, hash-verified

54 * @param {boolean=} opt_noEncode
55 */
56 constructor(vars, opt_iterations, opt_noEncode) {
57 /** @const {!{[key: string]: string|Array<string>}} */
58 this.vars = vars;
59 /** @const {number} */
60 this.iterations = opt_iterations === undefined ? 2 : opt_iterations;
61 /** @const {boolean} */
62 this.noEncode = !!opt_noEncode;
63 this.freezeVars = {};
64 }
65
66 /**
67 * Freeze special variable name so that they don't get expanded.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected