From fbd2322ffab5b5653288bcd0c0dd17faf4c5222d Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 6 Sep 2018 06:07:14 +0300 Subject: [PATCH] Add replacement information for deprecated JQuery members #KT-21703 --- libraries/stdlib/js/src/jquery/common.kt | 18 +++++++++--------- libraries/stdlib/js/src/jquery/ui.kt | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/libraries/stdlib/js/src/jquery/common.kt b/libraries/stdlib/js/src/jquery/common.kt index 2fad8c2df2d..9d01bc087e8 100644 --- a/libraries/stdlib/js/src/jquery/common.kt +++ b/libraries/stdlib/js/src/jquery/common.kt @@ -3,7 +3,7 @@ package jquery 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 fun addClass(className: String): JQuery public fun addClass(f: (Int, String) -> String): JQuery @@ -44,7 +44,7 @@ public external class JQuery() { 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() { public val pageX: Double public val pageY: Double @@ -52,26 +52,26 @@ open public external class MouseEvent() { 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 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("$") 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("$") 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("$") 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("$") 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("$") 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("$") public external fun jq(): JQuery diff --git a/libraries/stdlib/js/src/jquery/ui.kt b/libraries/stdlib/js/src/jquery/ui.kt index 5a51db0c5f8..19c6d63f89a 100644 --- a/libraries/stdlib/js/src/jquery/ui.kt +++ b/libraries/stdlib/js/src/jquery/ui.kt @@ -6,32 +6,32 @@ package jquery.ui import jquery.JQuery 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() -@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() -@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) -@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) -@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) -@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) -@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() -@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() -@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) -@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()