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

Method addGlobalTarget

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

* Registers the action target that will receive all designated actions. * @param {string} name * @param {ActionHandlerDef} handler

(name, handler)

Source from the content-addressed store, hash-verified

389 * @param {ActionHandlerDef} handler
390 */
391 addGlobalTarget(name, handler) {
392 this.globalTargets_[name] = handler;
393 }
394
395 /**
396 * Registers the action handler for a common method.

Callers 2

test-action.jsFile · 0.80
installActions_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected