From 0f24d5c2276d4110c234eda68b343681941886cf Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Aug 2020 15:59:38 +0900 Subject: [PATCH] chore: Clean up --- src/client/directives/size.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/client/directives/size.ts b/src/client/directives/size.ts index d00b2b5b3..dbe26640b 100644 --- a/src/client/directives/size.ts +++ b/src/client/directives/size.ts @@ -6,25 +6,6 @@ export default { // その場合はunbindの方も改修することを忘れずに 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) => { el.classList.add(cls); };