From 994e01ec9db110e00bfafc9bc951513ce008ecf8 Mon Sep 17 00:00:00 2001 From: Ivan Hetman Date: Tue, 12 Mar 2024 20:02:16 +0200 Subject: [PATCH] jso: add vararg versions of 'add' methods to DomTokenList --- .../main/java/org/teavm/jso/dom/types/DOMTokenList.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jso/apis/src/main/java/org/teavm/jso/dom/types/DOMTokenList.java b/jso/apis/src/main/java/org/teavm/jso/dom/types/DOMTokenList.java index 6f69e6d83..38a00704d 100644 --- a/jso/apis/src/main/java/org/teavm/jso/dom/types/DOMTokenList.java +++ b/jso/apis/src/main/java/org/teavm/jso/dom/types/DOMTokenList.java @@ -30,7 +30,15 @@ public interface DOMTokenList extends JSObject { void add(String token); + void add(String token1, String token2); + + void add(String... tokens); + void remove(String token); + void remove(String token1, String token2); + + void remove(String... tokens); + boolean toggle(String token); }