JS: example library to use new library format
This commit is contained in:
@@ -13,6 +13,6 @@ fun myApp() {
|
||||
val y = pairMul(p)
|
||||
val z = IntHolder(100).value
|
||||
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() {
|
||||
val element = document.getElementById("foo")
|
||||
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-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>
|
||||
</archive>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user