Skip to content

Commit 2a0f1f7

Browse files
author
Tomas Kirda
committed
Use empty suggestions array if it is bad query.
1 parent 9d8118f commit 2a0f1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@
575575
options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
576576
});
577577
} else {
578-
options.onSearchComplete.call(that.element, q, result.suggestions);
578+
options.onSearchComplete.call(that.element, q, []);
579579
}
580580
},
581581

0 commit comments

Comments
 (0)