typeahead bse ready, need tests

This commit is contained in:
vitalets
2013-01-13 22:41:49 +04:00
parent d8e08085de
commit 8061e5fd55
4 changed files with 215 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ List - abstract class for inputs that have source option loaded from js array or
}, this)
});
} else { //options as json/array/function
if (typeof this.options.source === 'function') {
if ($.isFunction(this.options.source)) {
this.sourceData = this.makeArray(this.options.source());
} else {
this.sourceData = this.makeArray(this.options.source);