Merge pull request #374 from sergioharo/patch-1

Fix for issue #373
This commit is contained in:
Jake Harding
2013-08-01 01:02:26 -07:00

View File

@@ -55,7 +55,7 @@
},
val: function val(newVal) {
return newVal ? this.each(setQuery) : this.map(getQuery).get();
return _.isString(newVal) ? this.each(setQuery) : this.map(getQuery).get();
function setQuery() {
var $input = $(this), typeahead;