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

Method execute

src/service/action-impl.js:428–439  ·  view source on GitHub ↗

* Triggers execution of the method on a target/method. * @param {!Element} target * @param {string} method * @param {?JsonObject} args * @param {?Element} source * @param {?Element} caller * @param {?ActionEventDef} event * @param {ActionTrust_Enum} trust

(target, method, args, source, caller, event, trust)

Source from the content-addressed store, hash-verified

426 * @param {ActionTrust_Enum} trust
427 */
428 execute(target, method, args, source, caller, event, trust) {
429 const invocation = new ActionInvocation(
430 target,
431 method,
432 args,
433 source,
434 caller,
435 event,
436 trust
437 );
438 this.invoke_(invocation);
439 }
440
441 /**
442 * Installs action handler for the specified element. The action handler is

Callers 3

actionTypeHandlerFunction · 0.45
onDocumentFormSubmit_Function · 0.45
index_test.jsFile · 0.45

Calls 1

invoke_Method · 0.95

Tested by

no test coverage detected