Skip to content

Commit 814e8b5

Browse files
committed
1 parent 3acecf1 commit 814e8b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ the specific language governing permissions and limitations under the Apache Lic
13211321

13221322
self.opts.populateResults.call(this, results, data.results, {term: term, page: page, context:context});
13231323
self.postprocessResults(data, false, false);
1324-
1324+
13251325
if (data.more===true) {
13261326
more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1));
13271327
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);
@@ -2703,7 +2703,7 @@ the specific language governing permissions and limitations under the Apache Lic
27032703
maximumSelectionSize: 0,
27042704
id: function (e) { return e.id; },
27052705
matcher: function(term, text) {
2706-
return text.toUpperCase().indexOf(term.toUpperCase()) >= 0;
2706+
return (''+text).toUpperCase().indexOf((''+term).toUpperCase()) >= 0;
27072707
},
27082708
separator: ",",
27092709
tokenSeparators: [],

0 commit comments

Comments
 (0)