Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autocomplete (html option): Only use custom searching when the html o…

…ption is turned on.
  • Loading branch information...
commit e34c9457619a13a01774f7954175320ac1e283c1 1 parent f85e922
@scottgonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autocomplete/jquery.ui.autocomplete.html.js
View
2  autocomplete/jquery.ui.autocomplete.html.js
@@ -20,7 +20,7 @@ function filter( array, term ) {
$.extend( proto, {
_initSource: function() {
- if ( $.isArray(this.options.source) ) {
+ if ( this.options.html && $.isArray(this.options.source) ) {
this.source = function( request, response ) {
response( filter( this.options.source, request.term ) );
};
Please sign in to comment.
Something went wrong with that request. Please try again.