mirror of
https://github.com/zhigang1992/typeahead.js.git
synced 2026-05-29 22:16:57 +08:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user