JS stdlib: fixed visibility in some declarations.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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("$")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user