Skip to content

Commit 3570ab5

Browse files
committed
add third param to matcher in local
1 parent f63a10c commit 3570ab5

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
@@ -380,11 +380,11 @@ the specific language governing permissions and limitations under the Apache Lic
380380
}
381381
group.children=[];
382382
$(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });
383-
if (group.children.length || query.matcher(t, text(group))) {
383+
if (group.children.length || query.matcher(t, text(group), datum)) {
384384
collection.push(group);
385385
}
386386
} else {
387-
if (query.matcher(t, text(datum))) {
387+
if (query.matcher(t, text(datum), datum)) {
388388
collection.push(datum);
389389
}
390390
}

0 commit comments

Comments
 (0)