From 82f00fa23b88853ac136017915bdc73062aafbd2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 30 Mar 2022 20:48:38 +0600 Subject: [PATCH] All attribute values now will print their name as result of toString --- .../kotlin/dev/inmo/jsuikit/modifiers/AttributeValue.kt | 4 +++- src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitDropdown.kt | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/AttributeValue.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/AttributeValue.kt index 1db9ac2..7bf209c 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/AttributeValue.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/AttributeValue.kt @@ -1,3 +1,5 @@ package dev.inmo.jsuikit.modifiers -sealed class AttributeValue(val name: String) +sealed class AttributeValue(val name: String) { + override fun toString(): String = name +} diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitDropdown.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitDropdown.kt index 2aef2d5..b1374b0 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitDropdown.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitDropdown.kt @@ -43,8 +43,6 @@ sealed class UIKitDropdown(classname: String) : UIKitModifier { } - override fun toString(): String = name - } sealed class Mode(name: String) : AttributeValue(name) {