Update htmlx, update version
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
group 'nl.astraeus'
|
group 'nl.astraeus'
|
||||||
version '0.1.15-SNAPSHOT'
|
version '0.1.16-SNAPSHOT'
|
||||||
|
|
||||||
apply plugin: 'kotlin2js'
|
apply plugin: 'kotlin2js'
|
||||||
apply plugin: 'kotlin-dce-js'
|
apply plugin: 'kotlin-dce-js'
|
||||||
@@ -39,7 +39,7 @@ buildscript {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
|
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
|
||||||
compile 'org.jetbrains.kotlinx:kotlinx-html-js:0.6.10'
|
compile 'org.jetbrains.kotlinx:kotlinx-html-js:0.7.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
|
|||||||
4
komp.ipr
4
komp.ipr
@@ -16,6 +16,9 @@
|
|||||||
<component name="Encoding">
|
<component name="Encoding">
|
||||||
<file url="PROJECT" charset="UTF-8" />
|
<file url="PROJECT" charset="UTF-8" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="FrameworkDetectionExcludesConfiguration">
|
||||||
|
<file type="web" url="file://$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
<component name="GradleLocalSettings">
|
<component name="GradleLocalSettings">
|
||||||
<option name="modificationStamps">
|
<option name="modificationStamps">
|
||||||
<map>
|
<map>
|
||||||
@@ -56,7 +59,6 @@
|
|||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
<option name="useAutoImport" value="true" />
|
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ import kotlin.browser.document
|
|||||||
public typealias CssStyle = CSSStyleDeclaration.() -> Unit
|
public typealias CssStyle = CSSStyleDeclaration.() -> Unit
|
||||||
|
|
||||||
fun Tag.include(component: Komponent) {
|
fun Tag.include(component: Komponent) {
|
||||||
|
if (component.element != null) {
|
||||||
component.update()
|
component.update()
|
||||||
|
} else {
|
||||||
|
component.refresh()
|
||||||
|
}
|
||||||
|
|
||||||
val consumer = this.consumer
|
val consumer = this.consumer
|
||||||
val element = component.element
|
val element = component.element
|
||||||
|
|||||||
Reference in New Issue
Block a user