JS use wholeText instead of replaceWholeText() in example

This commit is contained in:
Sergey Mashkov
2015-05-14 17:30:34 +03:00
parent e7748e2700
commit 13a55ae72e
@@ -5,7 +5,7 @@ import kotlin.js.dom.html.window
public class Counter(val el: Text) {
fun step(n: Int) {
el.replaceWholeText("Counter: ${n}")
el.wholeText = "Counter: ${n}"
window.setTimeout({step(n+1)}, 1000)
}