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

Method setAsContainerInternal

src/custom-element.js:835–838  ·  view source on GitHub ↗

* See `BaseElement.setAsContainer`. * * @param {!Element=} opt_scroller A child of the container that should be * monitored. Typically a scrollable element. * @restricted * @final

(opt_scroller)

Source from the content-addressed store, hash-verified

833 * @final
834 */
835 setAsContainerInternal(opt_scroller) {
836 const builder = getSchedulerForDoc(this.getAmpDoc());
837 builder.setContainer(this, opt_scroller);
838 }
839
840 /**
841 * See `BaseElement.removeAsContainer`.

Callers 1

setAsContainerMethod · 0.80

Calls 3

getAmpDocMethod · 0.95
getSchedulerForDocFunction · 0.90
setContainerMethod · 0.80

Tested by

no test coverage detected