mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
chore: Clean up
This commit is contained in:
parent
2b1b31edcc
commit
0f24d5c227
1 changed files with 0 additions and 19 deletions
|
@ -6,25 +6,6 @@ export default {
|
||||||
// その場合はunbindの方も改修することを忘れずに
|
// その場合はunbindの方も改修することを忘れずに
|
||||||
const el = query.el ? query.el() : src;
|
const el = query.el ? query.el() : src;
|
||||||
|
|
||||||
/*
|
|
||||||
const addClassRecursive = (el: Element, cls: string) => {
|
|
||||||
el.classList.add(cls);
|
|
||||||
if (el.children) {
|
|
||||||
for (const child of el.children) {
|
|
||||||
addClassRecursive(child, cls);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const removeClassRecursive = (el: Element, cls: string) => {
|
|
||||||
el.classList.remove(cls);
|
|
||||||
if (el.children) {
|
|
||||||
for (const child of el.children) {
|
|
||||||
removeClassRecursive(child, cls);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};*/
|
|
||||||
|
|
||||||
const addClass = (el: Element, cls: string) => {
|
const addClass = (el: Element, cls: string) => {
|
||||||
el.classList.add(cls);
|
el.classList.add(cls);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue