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

Function initActionMap

src/base-element.js:1059–1063  ·  view source on GitHub ↗

* This would usually be a private method on BaseElement class, but we cannot * use privates here. So, it's manually devirtualized into a regular function. * * @param {typeof BaseElement} baseElement

(baseElement)

Source from the content-addressed store, hash-verified

1057 * @param {typeof BaseElement} baseElement
1058 */
1059function initActionMap(baseElement) {
1060 if (!baseElement['actionMap_']) {
1061 baseElement['actionMap_'] = baseElement.win.Object.create(null);
1062 }
1063}

Callers 2

registerActionMethod · 0.85
executeActionMethod · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected