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

Method attemptCollapse

src/base-element.js:855–859  ·  view source on GitHub ↗

* Return a promise that request the runtime to collapse one element * @return {!Promise}

()

Source from the content-addressed store, hash-verified

853 * @return {!Promise}
854 */
855 attemptCollapse() {
856 return Services.mutatorForDoc(this.getAmpDoc()).attemptCollapse(
857 this.element
858 );
859 }
860
861 /**
862 * Requests the runtime to update the height of this element to the specified

Callers 8

test-mutator.jsFile · 0.45
applyNoContentUIMethod · 0.45
initiateSraRequestsMethod · 0.45
collapsedCallbackMethod · 0.45
messageListenerMethod · 0.45
handleEvent_Method · 0.45
bindToPlayerCommands_Method · 0.45

Calls 1

getAmpDocMethod · 0.95

Tested by

no test coverage detected