aboutsummaryrefslogtreecommitdiffstats
path: root/ui/labels.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-05-14 23:37:19 +0200
committerGitHub <noreply@github.com>2021-05-14 23:37:19 +0200
commit7c6a9f01281a9739f54ef57d7deecb41a873ef38 (patch)
treeb817231c1c6098c41a44713c5e8f2ad428b18457 /ui/labels.js
parentafe20b79a64266e64011f34b26a30b3d1c62fd47 (diff)
downloadjquery-ui-7c6a9f01281a9739f54ef57d7deecb41a873ef38.tar.gz
jquery-ui-7c6a9f01281a9739f54ef57d7deecb41a873ef38.zip
All: Drop $.ui.escapeSelector in favor of $.escapeSelector
Fixes #14991 Closes gh-1957
Diffstat (limited to 'ui/labels.js')
-rw-r--r--ui/labels.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/labels.js b/ui/labels.js
index 1bf56ac41..216c46a9a 100644
--- a/ui/labels.js
+++ b/ui/labels.js
@@ -16,7 +16,7 @@
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
- define( [ "jquery", "./version", "./escape-selector" ], factory );
+ define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
@@ -53,7 +53,7 @@ return $.fn.labels = function() {
ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
// Create a selector for the label based on the id
- selector = "label[for='" + $.ui.escapeSelector( id ) + "']";
+ selector = "label[for='" + $.escapeSelector( id ) + "']";
labels = labels.add( ancestors.find( selector ).addBack( selector ) );