Add replacement information for deprecated JQuery members

#KT-21703
This commit is contained in:
Ilya Gorbunov
2018-09-06 06:07:14 +03:00
parent c3f654a71c
commit fbd2322ffa
2 changed files with 19 additions and 19 deletions
+9 -9
View File
@@ -3,7 +3,7 @@ package jquery
import org.w3c.dom.Element import org.w3c.dom.Element
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public external class JQuery() { public external class JQuery() {
public fun addClass(className: String): JQuery public fun addClass(className: String): JQuery
public fun addClass(f: (Int, String) -> String): JQuery public fun addClass(f: (Int, String) -> String): JQuery
@@ -44,7 +44,7 @@ public external class JQuery() {
public fun `val`(): String? public fun `val`(): String?
} }
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
open public external class MouseEvent() { open public external class MouseEvent() {
public val pageX: Double public val pageX: Double
public val pageY: Double public val pageY: Double
@@ -52,26 +52,26 @@ open public external class MouseEvent() {
public fun isDefaultPrevented(): Boolean public fun isDefaultPrevented(): Boolean
} }
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public external class MouseClickEvent() : MouseEvent { public external class MouseClickEvent() : MouseEvent {
public val which: Int public val which: Int
} }
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
@JsName("$") @JsName("$")
public external fun jq(selector: String): JQuery public external fun jq(selector: String): JQuery
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
@JsName("$") @JsName("$")
public external fun jq(selector: String, context: Element): JQuery public external fun jq(selector: String, context: Element): JQuery
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
@JsName("$") @JsName("$")
public external fun jq(callback: () -> Unit): JQuery public external fun jq(callback: () -> Unit): JQuery
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
@JsName("$") @JsName("$")
public external fun jq(obj: JQuery): JQuery public external fun jq(obj: JQuery): JQuery
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
@JsName("$") @JsName("$")
public external fun jq(el: Element): JQuery public external fun jq(el: Element): JQuery
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
@JsName("$") @JsName("$")
public external fun jq(): JQuery public external fun jq(): JQuery
+10 -10
View File
@@ -6,32 +6,32 @@ package jquery.ui
import jquery.JQuery import jquery.JQuery
import kotlin.js.Json import kotlin.js.Json
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset() public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset()
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.dialog(): JQuery = asDynamic().dialog() public inline fun JQuery.dialog(): JQuery = asDynamic().dialog()
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.dialog(params: Json): JQuery = asDynamic().dialog(params) public inline fun JQuery.dialog(params: Json): JQuery = asDynamic().dialog(params)
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.dialog(mode: String, param: String): Any? = asDynamic().dialog(mode, param) 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") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.dialog(mode: String): JQuery = asDynamic().dialog(mode) public inline fun JQuery.dialog(mode: String): JQuery = asDynamic().dialog(mode)
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.dialog(mode: String, param: String, value: Any?): JQuery = asDynamic().dialog(mode, param, value) 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") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.button(): JQuery = asDynamic().button() public inline fun JQuery.button(): JQuery = asDynamic().button()
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.accordion(): JQuery = asDynamic().accordion() public inline fun JQuery.accordion(): JQuery = asDynamic().accordion()
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.draggable(params: Json): JQuery = asDynamic().draggable(params) public inline fun JQuery.draggable(params: Json): JQuery = asDynamic().draggable(params)
@Deprecated("JQuery is going to be removed from the standard library") @Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
public inline fun JQuery.selectable(): JQuery = asDynamic().selectable() public inline fun JQuery.selectable(): JQuery = asDynamic().selectable()