Skip to content

Commit

Permalink
Merge pull request mdbootstrap#262 from dhendo/pass-typeahead-options
Browse files Browse the repository at this point in the history
Pass options to typeahead.js
  • Loading branch information
lucknerjb committed Jul 17, 2015
2 parents 3a6a359 + 86ed088 commit 70913b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap-tagsinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@

// typeahead.js
if (self.options.typeaheadjs) {
var typeaheadConfig = null;
var typeaheadjs = self.options.typeaheadjs;
var typeaheadConfig = typeaheadjs.options || null;
var typeaheadDatasets = {};

// Determine if main configurations were passed or simply a dataset
var typeaheadjs = self.options.typeaheadjs;
if ($.isArray(typeaheadjs)) {
typeaheadConfig = typeaheadjs[0];
typeaheadDatasets = typeaheadjs[1];
Expand Down

0 comments on commit 70913b7

Please sign in to comment.