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

Function getPositionObserver

ads/inabox/position-observer.js:181–185  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

179 * @return {!PositionObserver}
180 */
181export function getPositionObserver(win) {
182 win[AMP_INABOX_POSITION_OBSERVER] =
183 win[AMP_INABOX_POSITION_OBSERVER] || new PositionObserver(win);
184 return win[AMP_INABOX_POSITION_OBSERVER];
185}

Callers 3

constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected