MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / handler1

Function handler1

packages/core/data/observable/index.spec.ts:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 callCount2++;
47 };
48 const handler1 = function () {
49 callCount1++;
50 observable.once('test', handler2);
51 observable.notify({ eventName: 'test', object: observable });
52 };
53 observable.once('test', handler1);
54 observable.notify({ eventName: 'test', object: observable });
55 expect(callCount1).toBe(1);

Callers

nothing calls this directly

Calls 2

onceMethod · 0.80
notifyMethod · 0.65

Tested by

no test coverage detected