Update of select2

This commit is contained in:
Marc Ducobu 2015-10-05 21:33:13 +02:00
parent 5f89de46cf
commit 1274d1ff6d
3 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/* /*
Version: 3.5.3 Timestamp: Wed Aug 19 21:55:46 EDT 2015 Version: 3.5.4 Timestamp: Sun Aug 30 13:30:32 EDT 2015
*/ */
.select2-container { .select2-container {
margin: 0; margin: 0;

View File

@ -1,7 +1,7 @@
/* /*
Copyright 2012 Igor Vaynberg Copyright 2012 Igor Vaynberg
Version: 3.5.3 Timestamp: Wed Aug 19 21:55:46 EDT 2015 Version: 3.5.4 Timestamp: Sun Aug 30 13:30:32 EDT 2015
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
General Public License version 2 (the "GPL License"). You may choose either license to govern your General Public License version 2 (the "GPL License"). You may choose either license to govern your
@ -1023,14 +1023,14 @@ the specific language governing permissions and limitations under the Apache Lic
// data-select2-tags -> data-tags // data-select2-tags -> data-tags
if (opts.element.data('tags') != null) { if (opts.element.data('tags') != null) {
var tags = opts.element.data('tags'); var elemTags = opts.element.data('tags');
// data-tags should actually be a boolean // data-tags should actually be a boolean
if (!$.isArray(tags)) { if (!$.isArray(elemTags)) {
tags = []; elemTags = [];
} }
opts.element.data('select2Tags', tags); opts.element.data('select2Tags', elemTags);
} }
// sortResults -> sorter // sortResults -> sorter
@ -2745,7 +2745,7 @@ the specific language governing permissions and limitations under the Apache Lic
if (data == undefined) data = null; if (data == undefined) data = null;
return data; return data;
} else { } else {
if (opts.debug && console && console.warn) { if (this.opts.debug && console && console.warn) {
console.warn( console.warn(
'Select2: The `select2("data")` method can no longer set selected values in 4.0.0, ' + 'Select2: The `select2("data")` method can no longer set selected values in 4.0.0, ' +
'consider using the `.val()` method instead.' 'consider using the `.val()` method instead.'

File diff suppressed because one or more lines are too long