From 02db1471602c607f1b7d1e863f4f585e408abd2b Mon Sep 17 00:00:00 2001 From: Kristof degrave Date: Thu, 18 Jan 2018 11:27:28 +0100 Subject: [PATCH] Fixed typos Added the forgotten `s` to the `this.options` + the forgotten `this` to `this.theme` --- bootstrap3-typeahead.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap3-typeahead.js b/bootstrap3-typeahead.js index bbcc7c3..9a68db1 100644 --- a/bootstrap3-typeahead.js +++ b/bootstrap3-typeahead.js @@ -61,8 +61,8 @@ this.followLinkOnSelect = this.options.followLinkOnSelect || this.followLinkOnSelect; this.source = this.options.source; this.delay = this.options.delay; - this.theme = this.option.theme && this.options.themes && this.options.themes[this.options.theme] || Typeahead.defaults.themes[Typeahead.defaults.theme]; - this.$menu = $(this.options.menu || theme.menu); + this.theme = this.options.theme && this.options.themes && this.options.themes[this.options.theme] || Typeahead.defaults.themes[Typeahead.defaults.theme]; + this.$menu = $(this.options.menu || this.theme.menu); this.$appendTo = this.options.appendTo ? $(this.options.appendTo) : null; this.fitToElement = typeof this.options.fitToElement == 'boolean' ? this.options.fitToElement : false; this.shown = false;