When I use $('#my-ul').tagit({triggerKeys:['enter', 'tab']});
The resulting triggerKeys array in the tagit options looks like this:
['enter', 'tab', 'comma', 'tab']
Passed values only overwrite individual values in the array, so if fewer options are passed, the later indexes in the array remain. To get the behavior I desired (tags can include commas or spaces), I had to use:
$('#my-ul').tagit({triggerKeys:['enter', 'tab', 'asdf', 'asdf']});
When I use $('#my-ul').tagit({triggerKeys:['enter', 'tab']});
The resulting triggerKeys array in the tagit options looks like this: ['enter', 'tab', 'comma', 'tab']
Passed values only overwrite individual values in the array, so if fewer options are passed, the later indexes in the array remain. To get the behavior I desired (tags can include commas or spaces), I had to use: $('#my-ul').tagit({triggerKeys:['enter', 'tab', 'asdf', 'asdf']});