diff --git a/webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js b/webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js index 95e4b52f15..c982f5c3b0 100644 --- a/webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js +++ b/webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js @@ -185,7 +185,10 @@ JX.install('TypeaheadSource', { this._raw[obj.id] = obj; var t = this.tokenize(obj.tokenizable || obj.name); for (var jj = 0; jj < t.length; ++jj) { - this._lookup[t[jj]] = this._lookup[t[jj]] || []; + if (typeof this._lookup[t[jj]] == "function") + this._lookup[t[jj]] = []; + else + this._lookup[t[jj]] = this._lookup[t[jj]] || []; this._lookup[t[jj]].push(obj.id); } },