diff --git a/themes/bootstrap3/js/autocomplete.js b/themes/bootstrap3/js/autocomplete.js index efa8b06d37ab3ce03b9669ba04aaa134da2180a1..0747fa8b77f0960009395dd2ac1f31051c588706 100644 --- a/themes/bootstrap3/js/autocomplete.js +++ b/themes/bootstrap3/js/autocomplete.js @@ -1,6 +1,6 @@ /*global jQuery, window, document, console, setTimeout, clearTimeout */ /** - * crhallberg/autocomplete.js 0.14 + * crhallberg/autocomplete.js 0.14.1 * ~ @crhallberg */ (function ( $ ) { @@ -240,11 +240,6 @@ $.fn.autocomplete = function(settings) { - if ('undefined' == typeof settings.handler) { - console.error('handler function not provided for autocomplete'); - return this; - } - options = $.extend( {}, options, settings ); return this.each(function() { @@ -262,6 +257,9 @@ cache[cid] = {}; } return input; + } else if ('undefined' == typeof settings.handler) { + console.error('handler function not provided for autocomplete'); + return this; } else { element = $('.autocomplete-results'); if (element.length == 0) {