MCPcopy Index your code
hub / github.com/ampproject/amphtml / invokeAction

Method invokeAction

src/service/action-impl.js:621–640  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619 const {args, method, str, target} = actionInfo;
620 const dereferencedArgs = dereferenceArgsVariables(args, event, opt_args);
621 const invokeAction = () => {
622 const node = this.getActionNode_(target);
623 if (!node) {
624 this.error_(`Target "${target}" not found for action [${str}].`);
625 return;
626 }
627 const invocation = new ActionInvocation(
628 node,
629 method,
630 dereferencedArgs,
631 source,
632 action.node,
633 event,
634 trust,
635 actionEventType,
636 node.tagName || target,
637 sequenceId
638 );
639 return this.invoke_(invocation);
640 };
641 // Wait for the previous action, if any.
642 currentPromise = currentPromise
643 ? currentPromise.then(invokeAction)

Callers

nothing calls this directly

Calls 3

getActionNode_Method · 0.95
error_Method · 0.95
invoke_Method · 0.95

Tested by

no test coverage detected