1
0
mirror of synced 2024-11-22 21:16:10 +03:00
select2/dist/js
Kevin Brown 8ea23610f1 Convert array data to options immediately
This converts individual objects passed in through the `array`
parameter to `<option>` tags when Select2 is initialized. This
removes a lot of duplicate code from the `ArrayAdapter`, and keeps
everything closer to the native `<select>` element.

This introduces a breaking change from previous versions of Select2,
where the initial value for array data was blank, even if a blank
option was not present in the original array of objects. Now the
first object passed in will be selected by default, following the
behavior of a standard `<select>` element.

This breaking change does not affect `<select multiple="multiple">`
elements, which by default have no selection.
2014-11-06 12:05:12 -05:00
..
i18n Added Spanish translation and fixed the example 2014-11-05 11:25:41 -05:00
select2.amd.full.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00
select2.amd.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00
select2.full.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00
select2.full.min.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00
select2.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00
select2.min.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00