From 7c6a9f01281a9739f54ef57d7deecb41a873ef38 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Fri, 14 May 2021 23:37:19 +0200 Subject: All: Drop $.ui.escapeSelector in favor of $.escapeSelector Fixes #14991 Closes gh-1957 --- ui/widgets/checkboxradio.js | 3 +-- ui/widgets/selectmenu.js | 3 +-- ui/widgets/tabs.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'ui/widgets') diff --git a/ui/widgets/checkboxradio.js b/ui/widgets/checkboxradio.js index 228c9fab9..0cb1a0cf8 100644 --- a/ui/widgets/checkboxradio.js +++ b/ui/widgets/checkboxradio.js @@ -23,7 +23,6 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "../escape-selector", "../form-reset-mixin", "../labels", "../widget" @@ -149,7 +148,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { _getRadioGroup: function() { var group; var name = this.element[ 0 ].name; - var nameSelector = "input[name='" + $.ui.escapeSelector( name ) + "']"; + var nameSelector = "input[name='" + $.escapeSelector( name ) + "']"; if ( !name ) { return $( [] ); diff --git a/ui/widgets/selectmenu.js b/ui/widgets/selectmenu.js index 79e97816b..cc98ecbbf 100644 --- a/ui/widgets/selectmenu.js +++ b/ui/widgets/selectmenu.js @@ -25,7 +25,6 @@ define( [ "jquery", "./menu", - "../escape-selector", "../form-reset-mixin", "../keycode", "../labels", @@ -425,7 +424,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { } if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + - $.ui.escapeSelector( this.ids.button ) ).length ) { + $.escapeSelector( this.ids.button ) ).length ) { this.close( event ); } } diff --git a/ui/widgets/tabs.js b/ui/widgets/tabs.js index 0eb69ebe1..7a53767dd 100644 --- a/ui/widgets/tabs.js +++ b/ui/widgets/tabs.js @@ -22,7 +22,6 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "../escape-selector", "../keycode", "../safe-active-element", "../unique-id", @@ -733,7 +732,7 @@ $.widget( "ui.tabs", { // meta-function to give users option to provide a href string instead of a numerical index. if ( typeof index === "string" ) { index = this.anchors.index( this.anchors.filter( "[href$='" + - $.ui.escapeSelector( index ) + "']" ) ); + $.escapeSelector( index ) + "']" ) ); } return index; -- cgit v1.2.3