support numeric text keys in local data. fixes #68
This commit is contained in:
parent
d563764dfc
commit
9ecce5af7c
@ -262,7 +262,7 @@
|
|||||||
*/
|
*/
|
||||||
function local(options) {
|
function local(options) {
|
||||||
var data = options, // data elements
|
var data = options, // data elements
|
||||||
text = function (item) { return item.text; }; // function used to retrieve the text portion of a data item that is matched against the search
|
text = function (item) { return ""+item.text; }; // function used to retrieve the text portion of a data item that is matched against the search
|
||||||
|
|
||||||
if (!$.isArray(data)) {
|
if (!$.isArray(data)) {
|
||||||
text = data.text;
|
text = data.text;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user