JS: example library to use new library format

This commit is contained in:
Sergey Mashkov
2015-05-19 15:51:10 +03:00
parent 4ef745974e
commit 09e7e0da4d
3 changed files with 2 additions and 4 deletions
@@ -13,6 +13,6 @@ fun myApp() {
val y = pairMul(p) val y = pairMul(p)
val z = IntHolder(100).value val z = IntHolder(100).value
val u = Date().extFun() val u = Date().extFun()
element.appendChild(document.createTextNode("x=$x y=$y z=$z u=$u")!!) element.appendChild(document.createTextNode("x=$x y=$y z=$z u=$u"))
} }
} }
@@ -5,6 +5,6 @@ import kotlin.browser.document
fun myApp() { fun myApp() {
val element = document.getElementById("foo") val element = document.getElementById("foo")
if (element != null) { if (element != null) {
element.appendChild(document.createTextNode("Some Dynamically Created Content!!!")!!) element.appendChild(document.createTextNode("Some Dynamically Created Content!!!"))
} }
} }
@@ -77,8 +77,6 @@
<Implementation-Vendor>${manifest.impl.vendor}</Implementation-Vendor> <Implementation-Vendor>${manifest.impl.vendor}</Implementation-Vendor>
<Implementation-Version>${build.number}</Implementation-Version> <Implementation-Version>${build.number}</Implementation-Version>
<Specification-Title>${manifest.spec.title.kotlin.javascript.lib}</Specification-Title>
<Kotlin-JS-Module-Name>${project.artifactId}</Kotlin-JS-Module-Name>
</manifestEntries> </manifestEntries>
</archive> </archive>
</configuration> </configuration>