From 92f9b69fb288b0e6c8aca8d16208f1a904d271ea Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Fri, 9 Jul 2021 11:13:32 -0400 Subject: [PATCH] more minor fixes and kdoc improvements --- src/main/kotlin/kweb/Element.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/kweb/Element.kt b/src/main/kotlin/kweb/Element.kt index b6fcfb155d..7ff7a60b84 100644 --- a/src/main/kotlin/kweb/Element.kt +++ b/src/main/kotlin/kweb/Element.kt @@ -273,13 +273,13 @@ open class Element( * [class attribute](https://www.w3schools.com/html/html_classes.asp). This will * be ignored if [onlyIf] is false. */ - //language=JavaScript fun removeClasses(vararg classes: String, onlyIf: Boolean = true): Element { if (onlyIf) { for (class_ in classes) { if (class_.contains(' ')) { error("Class names must not contain spaces") } + //language=JavaScript callJsFunction(""" let id = {}; let className = {};