From 3570ab523e7d038d204805c3e660c91b8715afee Mon Sep 17 00:00:00 2001 From: vitalets Date: Wed, 16 Jan 2013 22:09:31 +0400 Subject: [PATCH] add third param to matcher in local --- select2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index 8e0b095a..03857b3b 100644 --- a/select2.js +++ b/select2.js @@ -380,11 +380,11 @@ the specific language governing permissions and limitations under the Apache Lic } 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); } } else { - if (query.matcher(t, text(datum))) { + if (query.matcher(t, text(datum), datum)) { collection.push(datum); } }