Permalink
Browse files

Autocomplete: Use `$.trim` instead of `jQuery.trim` for consistency

Fixes #10525
  • Loading branch information...
tjvantoll committed Aug 8, 2014
1 parent d362fc9 commit 36e4bfd516c10140d8517ed9e2eb067be2e5c837
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/autocomplete.js
View
@@ -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 );
}

0 comments on commit 36e4bfd

Please sign in to comment.