Customize typeahead tokenizer

This commit is contained in:
lilia 2015-01-25 00:32:41 -10:00
parent c6a19afd29
commit f207137b35

View file

@ -27,6 +27,15 @@
comparator: function(m) {
return m.get('name');
},
_tokenize: function(s) {
s = $.trim(s);
if (s.length === 0) {
return null;
}
return s.toLowerCase().split(/[\s\-_+]+/)
}
});
Whisper.InboxView = Backbone.View.extend({