Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
very minor fix to button()
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jul 2, 2017
1 parent 119aa6e commit 68fc5ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {
}

group 'io.kweb'
version '0.2.7'
version '0.2.8'

apply plugin: 'java'
apply plugin: 'kotlin'
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/kweb/dom/element/creation/tags/other.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ open class ButtonElement(val wrapped: Element) : Element(wrapped)
enum class ButtonType {
button, reset, submit
}
fun ElementCreator<Element>.button(type: ButtonType? = ButtonType.button, autofocus: Boolean? = null, attributes: Map<String, Any> = attr): ButtonElement {
fun ElementCreator<Element>.button(attributes: Map<String, Any> = attr, type: ButtonType? = ButtonType.button, autofocus: Boolean? = null): ButtonElement {
return ButtonElement(element("button", attributes
.set("type", type?.name)
.set("autofocus", autofocus)
Expand Down

0 comments on commit 68fc5ee

Please sign in to comment.