MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / changeTab

Function changeTab

src/components/tabView.js:163–170  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

161 }
162
163 function changeTab(e) {
164 const { target } = e;
165 if (!target.matches(".options>span")) return;
166 const currentTab = el.get(".options>span.active");
167 if (target === currentTab) return;
168 if (currentTab) currentTab.classList.remove("active");
169 target.classList.add("active");
170 }
171}

Callers

nothing calls this directly

Calls 4

matchesMethod · 0.80
addMethod · 0.80
getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected