Skip to content
Permalink
Browse files

Autocomplete: Make sure we have a response before trying to check the…

… length. Fixes #6147 - Autocomplete: Errors on empty responses.
  • Loading branch information
scottgonzalez committed Oct 5, 2010
1 parent 3b38025 commit a5c119558b0b40633269c7565339e5b20754c3d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.autocomplete.js
@@ -268,7 +268,7 @@ $.widget( "ui.autocomplete", {
},

_response: function( content ) {
if ( content.length ) {
if ( content && content.length ) {
content = this._normalize( content );
this._suggest( content );
this._trigger( "open" );

0 comments on commit a5c1195

Please sign in to comment.
You can’t perform that action at this time.