1
0
mirror of synced 2025-03-10 22:56:12 +03:00

support numeric text keys in local data. fixes #68

This commit is contained in:
Igor Vaynberg 2012-05-28 15:15:51 -07:00
parent d563764dfc
commit 9ecce5af7c

View File

@ -262,7 +262,7 @@
*/
function local(options) {
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)) {
text = data.text;