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

Function observer2

test/unit/core/data-structures/test-observable.js:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17 let observer2Called = 0;
18 const observer2 = () => {
19 observer2Called++;
20 };
21 const observer2Key = observable.add(observer2);
22
23 expect(observer1Called).to.equal(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected