diff --git a/js/bootstrap-combobox.js b/js/bootstrap-combobox.js index af5dc0d..1639986 100755 --- a/js/bootstrap-combobox.js +++ b/js/bootstrap-combobox.js @@ -25,13 +25,13 @@ var Combobox = function ( element, options ) { this.options = $.extend({}, $.fn.combobox.defaults, options); + this.template = this.options.template || this.template this.$source = $(element); this.$container = this.setup(); this.$element = this.$container.find('input[type=text]'); this.$target = this.$container.find('input[type=hidden]'); this.$button = this.$container.find('.dropdown-toggle'); this.$menu = $(this.options.menu).appendTo('body'); - this.template = this.options.template || this.template this.matcher = this.options.matcher || this.matcher; this.sorter = this.options.sorter || this.sorter; this.highlighter = this.options.highlighter || this.highlighter;