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

Method constructor

src/core/context/values.js:44–74  ·  view source on GitHub ↗

* @param {ContextNode} contextNode

(contextNode)

Source from the content-addressed store, hash-verified

42 * @param {ContextNode} contextNode
43 */
44 constructor(contextNode) {
45 /**
46 * @private
47 * @const
48 * @type {ContextNode}
49 */
50 this.contextNode_ = contextNode;
51
52 /**
53 * @private
54 * @type {?Map<string, IContextPropInput<?>>}}
55 */
56 this.inputsByKey_ = null;
57
58 /**
59 * @private
60 * @type {?Map<string, IContextPropUsed<?, ?>>}}
61 */
62 this.usedByKey_ = null;
63
64 // Schedulers.
65 /**
66 * @private
67 * @const
68 * @type {function():void}
69 */
70 this.checkUpdates_ = throttleTail(
71 this.checkUpdates_.bind(this),
72 setTimeout
73 );
74 }
75
76 /**
77 * Sets the property's input value. This is analogous to a CSS specified

Callers

nothing calls this directly

Calls 1

throttleTailFunction · 0.90

Tested by

no test coverage detected