mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Autocomplete: Use $.trim instead of jQuery.trim for consistency
Fixes #10525
This commit is contained in:
@@ -268,7 +268,7 @@ $.widget( "ui.autocomplete", {
|
||||
|
||||
// Announce the value in the liveRegion
|
||||
label = ui.item.attr( "aria-label" ) || item.value;
|
||||
if ( label && jQuery.trim( label ).length ) {
|
||||
if ( label && $.trim( label ).length ) {
|
||||
this.liveRegion.children().hide();
|
||||
$( "<div>" ).text( label ).appendTo( this.liveRegion );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user