diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-08-09 15:59:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-08-09 15:59:38 +0900 |
| commit | 9b2ed96c1cb0e311fcc51d367dc0411e833b1698 (patch) | |
| tree | bb20d16dae0cc51d3eb218683ff0c51a19ef4710 /src/client | |
| parent | Full view mode (#6636) (diff) | |
| download | sharkey-9b2ed96c1cb0e311fcc51d367dc0411e833b1698.tar.gz sharkey-9b2ed96c1cb0e311fcc51d367dc0411e833b1698.tar.bz2 sharkey-9b2ed96c1cb0e311fcc51d367dc0411e833b1698.zip | |
chore: Clean up
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/directives/size.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client/directives/size.ts b/src/client/directives/size.ts index d00b2b5b38..dbe26640b9 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); }; |