MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / Widget

Class Widget

__tests__/fixtures/kernel-parity/torture.js:15–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13const arrow = (x) => legacyHelper(x, 1);
14
15class Widget extends EventEmitter {
16 static registry = new Map();
17 #privateField = 1;
18 label = 'w';
19 onTick = () => {
20 this.render();
21 };
22 wrapped = debounce(function () {
23 expensive();
24 }, 50);
25
26 constructor(opts) {
27 super();
28 this.opts = opts;
29 register(this.onTick);
30 }
31
32 render() {
33 paint(this.label);
34 }
35
36 static create(opts) {
37 return new Widget(opts);
38 }
39}
40
41// AMD-style wrapper — anonymous, but inner functions must still surface.
42(function () {

Callers

nothing calls this directly

Calls 2

renderMethod · 0.95
debounceFunction · 0.85

Tested by

no test coverage detected