MCPcopy
hub / github.com/spicetify/cli / constructor

Method constructor

Extensions/bookmark.js:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22 class BookmarkCollection {
23 constructor() {
24 const menu = createMenu();
25 this.container = menu.container;
26 this.items = menu.menu;
27 this.lastScroll = 0;
28 this.container.onclick = () => {
29 this.storeScroll();
30 this.container.remove();
31 };
32 this.filter = 0;
33 this.apply();
34 }
35
36 apply() {
37 this.items.textContent = ""; // Remove all childs

Callers

nothing calls this directly

Calls 3

storeScrollMethod · 0.95
applyMethod · 0.95
createMenuFunction · 0.85

Tested by

no test coverage detected