JS fix gradle example
This commit is contained in:
+2
-2
@@ -7,12 +7,12 @@ import example.library.Counter
|
||||
fun main(args: Array<String>) {
|
||||
val el = document.createElement("div")
|
||||
el.appendChild(document.createTextNode("Hello!"))
|
||||
document.body.appendChild(el)
|
||||
document.body!!.appendChild(el)
|
||||
|
||||
val counterDiv = document.createElement("div")
|
||||
val counterText = document.createTextNode("Counter!")
|
||||
counterDiv.appendChild(counterText)
|
||||
document.body.appendChild(counterDiv)
|
||||
document.body!!.appendChild(counterDiv)
|
||||
|
||||
val counter = Counter(counterText)
|
||||
counter.start()
|
||||
|
||||
Reference in New Issue
Block a user