diff --git a/js/js.libraries/src/core/debug.kt b/js/js.libraries/src/core/debug.kt index c4591bf598c..b34b3041436 100644 --- a/js/js.libraries/src/core/debug.kt +++ b/js/js.libraries/src/core/debug.kt @@ -1,13 +1,13 @@ package kotlin.js // https://developer.mozilla.org/en/DOM/console -native trait Console { - native fun dir(o: Any): Unit = noImpl - native fun error(vararg o: Any?): Unit = noImpl - native fun info(vararg o: Any?): Unit = noImpl - native fun log(vararg o: Any?): Unit = noImpl - native fun warn(vararg o: Any?): Unit = noImpl +native public trait Console { + native public fun dir(o: Any): Unit = noImpl + native public fun error(vararg o: Any?): Unit = noImpl + native public fun info(vararg o: Any?): Unit = noImpl + native public fun log(vararg o: Any?): Unit = noImpl + native public fun warn(vararg o: Any?): Unit = noImpl } native -val console:Console = noImpl +public val console: Console = noImpl diff --git a/js/js.libraries/src/core/json.kt b/js/js.libraries/src/core/json.kt index 50ae063bd13..1045967a447 100644 --- a/js/js.libraries/src/core/json.kt +++ b/js/js.libraries/src/core/json.kt @@ -1,8 +1,8 @@ package kotlin.js native public class Json() { - fun get(propertyName: String): Any? = js.noImpl - fun set(propertyName: String, value: Any?): Unit = js.noImpl + public fun get(propertyName: String): Any? = js.noImpl + public fun set(propertyName: String, value: Any?): Unit = js.noImpl } library("jsonFromTuples") diff --git a/js/js.libraries/src/html5/files.kt b/js/js.libraries/src/html5/files.kt index 85bf7e706b2..6245f5a4a9e 100644 --- a/js/js.libraries/src/html5/files.kt +++ b/js/js.libraries/src/html5/files.kt @@ -1,33 +1,33 @@ package html5.files native -class FileReader() { - var onloadend : ((FileReaderEvent)->Unit)? = js.noImpl // - fun readAsDataURL(blob : Blob) = js.noImpl - val result : File = js.noImpl +public class FileReader() { + public var onloadend : ((FileReaderEvent)->Unit)? = js.noImpl // + public fun readAsDataURL(blob : Blob) = js.noImpl + public val result : File = js.noImpl } native -class FileReaderEvent() { - val target : FileReader = js.noImpl +public class FileReaderEvent() { + public val target : FileReader = js.noImpl } native -class FileList() { - fun item(index : Int) : File? = js.noImpl - val length : Int = js.noImpl +public class FileList() { + public fun item(index : Int) : File? = js.noImpl + public val length : Int = js.noImpl } native -class File() : Blob() { - val name : String = js.noImpl +public class File() : Blob() { + public val name : String = js.noImpl // readonly attribute Date lastModifiedDate; } native -open class Blob() { - val size : Int = js.noImpl - val `type` : String = js.noImpl +public open class Blob() { + public val size : Int = js.noImpl + public val `type` : String = js.noImpl //Blob slice(optional long long start, //optional long long end, //optional DOMString contentType); diff --git a/js/js.libraries/src/html5/localstorage.kt b/js/js.libraries/src/html5/localstorage.kt index 545e440bd48..13dafc6a59e 100644 --- a/js/js.libraries/src/html5/localstorage.kt +++ b/js/js.libraries/src/html5/localstorage.kt @@ -1,9 +1,10 @@ package html5.localstorage native -val localStorage : LocalStorageClass = js.noImpl +public val localStorage : LocalStorageClass = js.noImpl + native -class LocalStorageClass() { - fun getItem(key : String) : Any? = js.noImpl - fun setItem(key : String, value : Any?) : Unit = js.noImpl +public class LocalStorageClass() { + public fun getItem(key : String) : Any? = js.noImpl + public fun setItem(key : String, value : Any?) : Unit = js.noImpl } diff --git a/js/js.libraries/src/jquery/common.kt b/js/js.libraries/src/jquery/common.kt index cd503f51676..9dede8a1833 100644 --- a/js/js.libraries/src/jquery/common.kt +++ b/js/js.libraries/src/jquery/common.kt @@ -1,4 +1,4 @@ -package jquery; +package jquery import org.w3c.dom.Element @@ -54,7 +54,7 @@ open public class MouseEvent() { native public class MouseClickEvent() : MouseEvent() { - val which: Int = 0; + public val which: Int = 0; } native("$") diff --git a/js/js.libraries/src/jquery/ui.kt b/js/js.libraries/src/jquery/ui.kt index 8c3a80f2f22..06c946bd0f2 100644 --- a/js/js.libraries/src/jquery/ui.kt +++ b/js/js.libraries/src/jquery/ui.kt @@ -5,22 +5,22 @@ package jquery.ui import jquery.JQuery native -fun JQuery.buttonset() : JQuery = js.noImpl; +public fun JQuery.buttonset() : JQuery = js.noImpl; native -fun JQuery.dialog() : JQuery = js.noImpl; +public fun JQuery.dialog() : JQuery = js.noImpl; native -fun JQuery.dialog(params : Json) : JQuery = js.noImpl +public fun JQuery.dialog(params : Json) : JQuery = js.noImpl native -fun JQuery.dialog(mode : String, param : String) : Any? = js.noImpl +public fun JQuery.dialog(mode : String, param : String) : Any? = js.noImpl native -fun JQuery.dialog(mode : String) : JQuery = js.noImpl +public fun JQuery.dialog(mode : String) : JQuery = js.noImpl native -fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = js.noImpl +public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = js.noImpl native -fun JQuery.button() : JQuery = js.noImpl; +public fun JQuery.button() : JQuery = js.noImpl; native -fun JQuery.accordion() : JQuery = js.noImpl +public fun JQuery.accordion() : JQuery = js.noImpl native -fun JQuery.draggable(params : Json) : JQuery = js.noImpl +public fun JQuery.draggable(params : Json) : JQuery = js.noImpl native -fun JQuery.selectable() : JQuery = js.noImpl +public fun JQuery.selectable() : JQuery = js.noImpl