Deprecate qunit (with ERROR) and jquery (with WARNING)

This commit is contained in:
Ilya Gorbunov
2017-01-24 16:48:29 +03:00
parent 70f3cee9ff
commit 03019dc638
3 changed files with 20 additions and 0 deletions
@@ -2,6 +2,7 @@ package jquery
import org.w3c.dom.Element
@Deprecated("JQuery is going to be removed from the standard library")
public external class JQuery() {
public fun addClass(className: String): JQuery
public fun addClass(f: Element.(Int, String) -> String): JQuery
@@ -42,6 +43,7 @@ public external class JQuery() {
public fun `val`(): String?
}
@Deprecated("JQuery is going to be removed from the standard library")
open public external class MouseEvent() {
public val pageX: Double
public val pageY: Double
@@ -49,19 +51,26 @@ open public external class MouseEvent() {
public fun isDefaultPrevented(): Boolean
}
@Deprecated("JQuery is going to be removed from the standard library")
public external class MouseClickEvent() : MouseEvent {
public val which: Int
}
@Deprecated("JQuery is going to be removed from the standard library")
@JsName("$")
public external fun jq(selector: String): JQuery
@Deprecated("JQuery is going to be removed from the standard library")
@JsName("$")
public external fun jq(selector: String, context: Element): JQuery
@Deprecated("JQuery is going to be removed from the standard library")
@JsName("$")
public external fun jq(callback: () -> Unit): JQuery
@Deprecated("JQuery is going to be removed from the standard library")
@JsName("$")
public external fun jq(obj: JQuery): JQuery
@Deprecated("JQuery is going to be removed from the standard library")
@JsName("$")
public external fun jq(el: Element): JQuery
@Deprecated("JQuery is going to be removed from the standard library")
@JsName("$")
public external fun jq(): JQuery
@@ -4,22 +4,32 @@ package jquery.ui
//jquery UI
import jquery.JQuery
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset()
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.dialog(): JQuery = asDynamic().dialog()
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.dialog(params: Json): JQuery = asDynamic().dialog(params)
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.dialog(mode: String, param: String): Any? = asDynamic().dialog(mode, param)
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.dialog(mode: String): JQuery = asDynamic().dialog(mode)
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.dialog(mode: String, param: String, value: Any?): JQuery = asDynamic().dialog(mode, param, value)
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.button(): JQuery = asDynamic().button()
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.accordion(): JQuery = asDynamic().accordion()
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.draggable(params: Json): JQuery = asDynamic().draggable(params)
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.selectable(): JQuery = asDynamic().selectable()
@@ -4,5 +4,6 @@ package QUnit
* The [QUnit](http://qunitjs.com/) API
*/
@Deprecated("QUnit.ok is going to be removed from the standard library", level = DeprecationLevel.ERROR)
public external fun ok(actual: Boolean, message: String?): Unit