Skip to content

Commit

Permalink
Autocomplete: Use $.trim instead of jQuery.trim for consistency
Browse files Browse the repository at this point in the history
Fixes #10525
  • Loading branch information
tjvantoll committed Aug 8, 2014
1 parent d362fc9 commit 36e4bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/autocomplete.js
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 36e4bfd

Please sign in to comment.