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

Fixes #10525
This commit is contained in:
TJ VanToll
2014-08-08 08:47:25 -04:00
parent d362fc958b
commit 36e4bfd516

View File

@@ -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 );
}