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

Method trigger_

third_party/subscriptions-project/swg.js:9306–9313  ·  view source on GitHub ↗

* @param {!CallbackId} id * @param {*} data * @return {boolean} * @private

(id, data)

Source from the content-addressed store, hash-verified

9304 * @private
9305 */
9306 trigger_(id, data) {
9307 this.resultBuffer_[id] = data;
9308 const callback = this.callbacks_[id];
9309 if (callback) {
9310 this.executeCallback_(id, callback, data);
9311 }
9312 return !!callback;
9313 }
9314
9315 /**
9316 * @param {!CallbackId} id

Callers 10

triggerLoginRequestMethod · 0.95
triggerLinkProgressMethod · 0.95
triggerLinkCompleteMethod · 0.95
triggerFlowStartedMethod · 0.95
triggerFlowCanceledMethod · 0.95

Calls 1

executeCallback_Method · 0.95

Tested by

no test coverage detected