Skip to content

Commit

Permalink
Fixes the an issue with the option to enable/disable auto-complete on…
Browse files Browse the repository at this point in the history
… comma.
  • Loading branch information
Francois Deschenes committed Sep 6, 2013
1 parent a78713a commit 08098c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/bootstrap-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
if ( event.keyCode != 9 ) event.preventDefault()
that.process()
} else if ( event.keyCode == 188 ) {
if ( !this.autocompleteOnComma ) {
if ( !that.options.autocompleteOnComma ) {
event.preventDefault()
that.process()
}
Expand Down Expand Up @@ -189,6 +189,7 @@
$.fn.tag.defaults = {
allowDuplicates: false
, caseInsensitive: true
, autocompleteOnComma: false
, placeholder: ''
, source: []
}
Expand Down

0 comments on commit 08098c2

Please sign in to comment.