aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt5
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/select/SimpleSelectInput.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt5
3 files changed, 0 insertions, 12 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt
index 07b86b4c..a486b82e 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt
@@ -51,7 +51,6 @@ abstract class CheckInput(
) : Widget(classes), FormInput {
init {
- this.vnkey = "kv_checkinput_${counter++}"
this.setInternalEventListener<CheckInput> {
click = {
val v = getElementJQuery()?.prop("checked") as Boolean?
@@ -162,8 +161,4 @@ abstract class CheckInput(
override fun blur() {
getElementJQuery()?.blur()
}
-
- companion object {
- internal var counter = 0
- }
}
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SimpleSelectInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SimpleSelectInput.kt
index df334c1c..b2ba1d43 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/select/SimpleSelectInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SimpleSelectInput.kt
@@ -85,7 +85,6 @@ open class SimpleSelectInput(
override var size: InputSize? by refreshOnUpdate()
init {
- this.vnkey = "kv_simpleselectinput_${counter++}"
setChildrenFromOptions()
this.setInternalEventListener<SimpleSelectInput> {
change = {
@@ -194,7 +193,6 @@ open class SimpleSelectInput(
}
companion object {
- internal var counter = 0
/**
* DSL builder extension function.
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt
index 393ae63f..e7ecba8a 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt
@@ -41,7 +41,6 @@ abstract class AbstractTextInput(
) : Widget(classes), FormInput {
init {
- this.vnkey = "kv_textinput_${counter++}"
this.setInternalEventListener<AbstractTextInput> {
input = {
self.changeValue()
@@ -167,8 +166,4 @@ abstract class AbstractTextInput(
override fun blur() {
getElementJQuery()?.blur()
}
-
- companion object {
- internal var counter = 0
- }
}