]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Make sure we have a response before trying to check the length. Fixes...
authorScott González <scott.gonzalez@gmail.com>
Tue, 5 Oct 2010 15:09:39 +0000 (11:09 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 5 Oct 2010 15:09:39 +0000 (11:09 -0400)
ui/jquery.ui.autocomplete.js

index 2d1d7f94b73ed1778a851d811d29ab0d53fc376d..6c449237016a24fc75a7f824e41a3a329bdc1678 100644 (file)
@@ -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" );