diff --git a/select2.js b/select2.js index 1238e3d7..1c3d1b3f 100755 --- a/select2.js +++ b/select2.js @@ -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;