diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-05 11:09:39 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-05 11:09:39 -0400 |
commit | a5c119558b0b40633269c7565339e5b20754c3d8 (patch) | |
tree | 7bc4e935f30252b680b3efce941fb3bfaf81df74 /ui/jquery.ui.autocomplete.js | |
parent | 3b38025cedca458c100176c273c8d3956a7a5459 (diff) | |
download | jquery-ui-a5c119558b0b40633269c7565339e5b20754c3d8.tar.gz jquery-ui-a5c119558b0b40633269c7565339e5b20754c3d8.zip |
Autocomplete: Make sure we have a response before trying to check the length. Fixes #6147 - Autocomplete: Errors on empty responses.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 2d1d7f94b..6c4492370 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/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" ); |