MCPcopy
hub / github.com/ampproject/amphtml / reset

Method reset

src/core/data-structures/signals.js:123–132  ·  view source on GitHub ↗

* Resets all signals. * @param {string} name

(name)

Source from the content-addressed store, hash-verified

121 * @param {string} name
122 */
123 reset(name) {
124 if (this.map_[name]) {
125 delete this.map_[name];
126 }
127 // Reset promise it has already been resolved.
128 const promiseStruct = this.promiseMap_?.[name];
129 if (promiseStruct && !promiseStruct.resolve) {
130 delete this.promiseMap_[name];
131 }
132 }
133}

Callers 5

setReadyStateInternalMethod · 0.45
layoutCallbackMethod · 0.45
reset_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected