Fix gradle test
This commit is contained in:
+3
-3
@@ -1,15 +1,15 @@
|
||||
package example.library
|
||||
|
||||
import org.w3c.dom.Text
|
||||
import kotlin.js.dom.html.window
|
||||
import kotlin.browser.*
|
||||
|
||||
public class Counter(val el: Text) {
|
||||
fun step(n: Int) {
|
||||
el.wholeText = "Counter: ${n}"
|
||||
document.title = "Counter: ${n}"
|
||||
window.setTimeout({step(n+1)}, 1000)
|
||||
}
|
||||
|
||||
fun start() {
|
||||
step(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user