From 13a55ae72ea13edb613dc2e28222b4fe04934a71 Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Thu, 14 May 2015 17:30:34 +0300 Subject: [PATCH] JS use wholeText instead of replaceWholeText() in example --- .../libraryProject/src/main/kotlin/example/library/Counter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/resources/testProject/kotlin2JsProject/libraryProject/src/main/kotlin/example/library/Counter.kt b/libraries/tools/kotlin-gradle-plugin/src/test/resources/testProject/kotlin2JsProject/libraryProject/src/main/kotlin/example/library/Counter.kt index 3d294681f1a..020aa0cfdd0 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/test/resources/testProject/kotlin2JsProject/libraryProject/src/main/kotlin/example/library/Counter.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/test/resources/testProject/kotlin2JsProject/libraryProject/src/main/kotlin/example/library/Counter.kt @@ -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) }