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

Method callback

third_party/subscriptions-project/swg.js:15440–15447  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

15438 static sendAndWaitForResponse(
15439 data, eventType, responseType, responseHandler) {
15440 function callback(event) {
15441 if (event.data[responseType]) {
15442 responseHandler(event);
15443 // We only want to process the response from the payframe once.
15444 // so stop listening to the event once processed.
15445 PayFrameHelper.removeMessageEventListener_(callback);
15446 }
15447 }
15448
15449 PayFrameHelper.addMessageEventListener_(callback);
15450

Callers 5

recordMethod · 0.45
fireIntersectionsFunction · 0.45
fireIntersectionsFunction · 0.45
notifySyncMethod · 0.45
notifySyncMethod · 0.45

Calls 1

Tested by

no test coverage detected