Native api update.
This commit is contained in:
@@ -16,8 +16,9 @@ library("println")
|
|||||||
fun println(s : Any?) {}
|
fun println(s : Any?) {}
|
||||||
library("print")
|
library("print")
|
||||||
fun print(s : Any?) {}
|
fun print(s : Any?) {}
|
||||||
|
//TODO: consistent parseInt
|
||||||
library("parseInt")
|
library("parseInt")
|
||||||
fun parseInt(s : String) : Int = 0
|
fun parseInt(s : String) : Int = js.noImpl
|
||||||
library
|
library
|
||||||
open class Exception() : Throwable() {}
|
open class Exception() : Throwable() {}
|
||||||
library
|
library
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package js.debug
|
||||||
|
|
||||||
|
import js.*
|
||||||
|
|
||||||
|
native
|
||||||
|
val console : consoleClass = js.noImpl
|
||||||
|
|
||||||
|
native
|
||||||
|
class consoleClass() {
|
||||||
|
fun log(message : Any?) : Unit = js.noImpl
|
||||||
|
}
|
||||||
@@ -17,5 +17,8 @@ fun Json.get(paramName : String) : Any? = js.noImpl
|
|||||||
library("jsonFromTuples")
|
library("jsonFromTuples")
|
||||||
fun json(vararg pairs : Tuple2<String, Any?>) : Json = js.noImpl
|
fun json(vararg pairs : Tuple2<String, Any?>) : Json = js.noImpl
|
||||||
|
|
||||||
|
library("jsonFromTuples")
|
||||||
|
fun json2(pairs : Array<Tuple2<String, Any?>>) : Json = js.noImpl
|
||||||
|
|
||||||
library("jsonAddProperties")
|
library("jsonAddProperties")
|
||||||
fun Json.add(other : Json) : Json = js.noImpl
|
fun Json.add(other : Json) : Json = js.noImpl
|
||||||
@@ -2,6 +2,7 @@ package js;
|
|||||||
|
|
||||||
import js.native
|
import js.native
|
||||||
|
|
||||||
|
//TODO: declare using number
|
||||||
native
|
native
|
||||||
class MathClass() {
|
class MathClass() {
|
||||||
val PI : Double = 1.0;
|
val PI : Double = 1.0;
|
||||||
@@ -25,7 +26,6 @@ class MathClass() {
|
|||||||
fun round(value : Number) = 0
|
fun round(value : Number) = 0
|
||||||
fun floor(value : Number) = 0
|
fun floor(value : Number) = 0
|
||||||
fun ceil(value : Number) = 0
|
fun ceil(value : Number) = 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ class JQuery() {
|
|||||||
fun hover(handlerIn : DomElement.() -> Unit, handlerOut : DomElement.() -> Unit) = this;
|
fun hover(handlerIn : DomElement.() -> Unit, handlerOut : DomElement.() -> Unit) = this;
|
||||||
fun next() : JQuery = js.noImpl
|
fun next() : JQuery = js.noImpl
|
||||||
fun parent() : JQuery = js.noImpl
|
fun parent() : JQuery = js.noImpl
|
||||||
|
fun `val`() : String? = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
|
|||||||
Reference in New Issue
Block a user