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