MCPcopy Create free account
hub / github.com/ampproject/amphtml / upgrade

Function upgrade

test/unit/polyfills/test-intersection-observer.js:503–506  ·  view source on GitHub ↗
(io)

Source from the content-addressed store, hash-verified

501 });
502
503 function upgrade(io) {
504 io.upgrade_(NativeIntersectionObserver);
505 return io.inst_;
506 }
507
508 it('should forward callback and default options', () => {
509 const io = new IntersectionObserverStub(callback);

Callers 1

Calls 1

upgrade_Method · 0.45

Tested by

no test coverage detected