1
0
mirror of synced 2024-11-25 22:36:03 +03:00
select2/tests/data
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
..
array-tests.js Convert array data to options immediately 2014-11-06 12:05:12 -05:00
array.html Added basic tests for select2/data/array 2014-10-21 21:43:58 -04:00
base-tests.js Linted tests 2014-10-21 21:43:57 -04:00
base.html Broke out a base data adapter 2014-10-21 21:43:57 -04:00
select-tests.js Changed tests to not use deepEqual 2014-10-21 21:44:00 -04:00
select.html Added tests for the query function 2014-10-21 21:43:59 -04:00