If I understand correctly, the correct use of the match before v4.0.0 was:
$('#myselect').select2({ ... matcher: function(term, text) { // return true if matches, false if not } })
With 4.0.2 this will not work - AFAICT has only one matcher parameter, which is an object. I could use the same function signature and wrap it with oldWrapper , but I would like to avoid this ... I could not find any example or documents. So how do I use the new helper? Or at least what is a function signature?
source share