added a (disabled) test case to try out using the kotlin.browser.document property from generated JS

This commit is contained in:
James Strachan
2012-05-24 16:58:04 +01:00
parent 2f32e9c60d
commit b9bcfd2628
2 changed files with 77 additions and 0 deletions
@@ -0,0 +1,10 @@
package test.browser
import kotlin.browser.document
fun foo() {
val element = document.getElementById("foo")
if (element != null) {
element.appendChild(document.createTextNode("Some Dynamically Created Contenet!!!"))
}
}