1
0
mirror of synced 2024-11-26 23:06:02 +03:00

add third param to matcher in local

This commit is contained in:
vitalets 2013-01-16 22:09:31 +04:00
parent f63a10ccb1
commit 3570ab523e

View File

@ -380,11 +380,11 @@ the specific language governing permissions and limitations under the Apache Lic
} }
group.children=[]; group.children=[];
$(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); }); $(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });
if (group.children.length || query.matcher(t, text(group))) { if (group.children.length || query.matcher(t, text(group), datum)) {
collection.push(group); collection.push(group);
} }
} else { } else {
if (query.matcher(t, text(datum))) { if (query.matcher(t, text(datum), datum)) {
collection.push(datum); collection.push(datum);
} }
} }