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

Method dequeueActions_

src/custom-element.js:1847–1859  ·  view source on GitHub ↗

* Dequeues events from the queue and dispatches them to the implementation * with "deferred" flag. * @private

()

Source from the content-addressed store, hash-verified

1845 * @private
1846 */
1847 dequeueActions_() {
1848 if (!this.actionQueue_) {
1849 return;
1850 }
1851
1852 const actionQueue = devAssert(this.actionQueue_);
1853 this.actionQueue_ = null;
1854
1855 // Notice, the actions are currently not de-duped.
1856 actionQueue.forEach((invocation) => {
1857 this.executionAction_(invocation, true);
1858 });
1859 }
1860
1861 /**
1862 * Executes the action immediately. All errors are consumed and reported.

Callers

nothing calls this directly

Calls 3

executionAction_Method · 0.95
devAssertFunction · 0.90
forEachMethod · 0.45

Tested by

no test coverage detected