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

Method constructor

testing/resize-observer-stub.js:50–54  ·  view source on GitHub ↗
(callback, onDisconnect)

Source from the content-addressed store, hash-verified

48
49class ResizeObserverStub {
50 constructor(callback, onDisconnect) {
51 this.onDisconnect_ = onDisconnect;
52 this.callback = callback;
53 this.elements = new Set();
54 }
55
56 disconnect() {
57 const onDisconnect = this.onDisconnect_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected