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

Function setIsMediaComponent

src/video-interface.js:606–608  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

604 * better place to put this now due to OWNERShip. Move.
605 */
606export function setIsMediaComponent(element) {
607 element.classList.add(MEDIA_COMPONENT_CLASSNAME);
608}

Callers 11

registerMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
buildCallbackMethod · 0.90

Calls 1

addMethod · 0.45

Tested by

no test coverage detected