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

Method forElementOptional

src/service/resource.js:95–97  ·  view source on GitHub ↗

* @param {!Element} element * @return {Resource}

(element)

Source from the content-addressed store, hash-verified

93 * @return {Resource}
94 */
95 static forElementOptional(element) {
96 return /** @type {Resource} */ (element[RESOURCE_PROP_]);
97 }
98
99 /**
100 * Assigns an owner for the specified element. This means that the resources

Callers 10

test-resource.jsFile · 0.80
test-resources.jsFile · 0.80
addMethod · 0.80
removeMethod · 0.80
forElementMethod · 0.80
setOwnerMethod · 0.80
removeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected