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

Method getResources

src/custom-element.js:329–337  ·  view source on GitHub ↗

* Returns Resources manager. Only available after attachment. It throws * exception before the element is attached. * @return {!./service/resources-interface.ResourcesInterface} * @final * @package

()

Source from the content-addressed store, hash-verified

327 * @package
328 */
329 getResources() {
330 devAssert(
331 this.resources_,
332 'no resources yet, since element is not attached'
333 );
334 return /** @type {!./service/resources-interface.ResourcesInterface} */ (
335 this.resources_
336 );
337 }
338
339 /**
340 * Whether the element has been upgraded yet. Always returns false when

Callers 11

completeUpgrade_Method · 0.95
ensureLoadedMethod · 0.95
connectedCallbackMethod · 0.95
disconnectMethod · 0.95
getResource_Method · 0.95
test-resource.jsFile · 0.80
updateLayoutPriorityMethod · 0.80
getResourceMethod · 0.80
getResourceMethod · 0.80
renderAndResizeMethod · 0.80

Calls 1

devAssertFunction · 0.90

Tested by

no test coverage detected