diff --git a/select2-latest.html b/select2-latest.html index a23cb188..db8776dc 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -219,6 +219,7 @@ $("#e10_3").select2({
formatSelection
and formatResult
changed in a backwards compatible way to support more powerful constructs than supported by strings alone.,
still the default. See separator
option in the docs.id
property that is returned.
- select
, or the local
or tags
helpers are used.
- matcher(term, text)+
matcher(term, text, option)
Parameter | Type | Description |
---|---|---|
term | string | search term |
text | string | text of the option being matched |
<returns> | boolean | true if search term matches the option text, or false otherwise |
option | jquery object | +the option element we are trying to match. Only given when attached to select .
+ Can be used to match against custom attributes on the option tag in addition to matching on the option 's text. |
<returns> | boolean | true if search term matches the text, or false otherwise |
function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>0; }
diff --git a/select2-master b/select2-master
index 3ed2cc09..3a830a2b 160000
--- a/select2-master
+++ b/select2-master
@@ -1 +1 @@
-Subproject commit 3ed2cc091ac473c8610c41e5b9941939007f1e02
+Subproject commit 3a830a2b81755bd0ba754defa4899cf164f13fc7