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

Method constructor

src/core/dom/media-query-props.js:12–30  ·  view source on GitHub ↗

* @param {Window} win * @param {function():void} callback

(win, callback)

Source from the content-addressed store, hash-verified

10 * @param {function():void} callback
11 */
12 constructor(win, callback) {
13 /** @private @const */
14 this.win_ = win;
15
16 /** @private @const */
17 this.callback_ = callback;
18
19 /**
20 * @type {{[key: string]: ExprDef}}
21 * @private
22 */
23 this.exprMap_ = {};
24
25 /**
26 * @type {?{[key: string]: ExprDef}}
27 * @private
28 */
29 this.prevExprMap_ = null;
30 }
31
32 /**
33 * Starts the resolution pass. After the pass is complete the new queries

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected