1
0
mirror of synced 2024-11-30 00:26:03 +03:00

Update select2.js

bugfix: .select2("data", null) for remote datasource causes an error "ReferenceError: e is not defined"
This commit is contained in:
sjschukin 2013-03-12 16:35:14 +04:00
parent 89bb328a77
commit 1cff8d4d22

View File

@ -2701,7 +2701,7 @@ the specific language governing permissions and limitations under the Apache Lic
minimumInputLength: 0, minimumInputLength: 0,
maximumInputLength: null, maximumInputLength: null,
maximumSelectionSize: 0, maximumSelectionSize: 0,
id: function (e) { return e.id; }, id: function (e) { return e == undefined ? null : e.id; },
matcher: function(term, text) { matcher: function(term, text) {
return (''+text).toUpperCase().indexOf((''+term).toUpperCase()) >= 0; return (''+text).toUpperCase().indexOf((''+term).toUpperCase()) >= 0;
}, },