From 89a314631269c222ccd7db54a978535b9501c36a Mon Sep 17 00:00:00 2001 From: "themitosan (win)" Date: Wed, 16 Aug 2023 04:54:43 -0300 Subject: [PATCH] Implement removeCustomClass function --- src/TMS.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/TMS.ts b/src/TMS.ts index d1808f9..3cbfcfa 100644 --- a/src/TMS.ts +++ b/src/TMS.ts @@ -86,6 +86,16 @@ export function appendCustomClass(name:string, css:any = {}){ } +/** + * Remove custom class + * @param name custom class name +*/ +export function removeCustomClass(name:string){ + if (getElement(`TMS_JS_CLASS_${name}`) !== null){ + removeDOM(`TMS_JS_CLASS_${name}`); + } +} + /** * Apply element CSS * @param elementId DOM ID target