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