MCPcopy Create free account
hub / github.com/alienkitty/space.js / initViews

Method initViews

src/ui/Menu.js:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 initViews() {
42 this.names.forEach((name, index) => {
43 const item = new MenuItem({ name, index });
44 item.events.on('click', this.onClick);
45 this.add(item);
46 this.items.push(item);
47 });
48 }
49
50 removeListeners() {
51 this.items.forEach(item => {

Callers 1

constructorMethod · 0.95

Calls 3

onMethod · 0.80
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected