1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/tests
Kevin Brown e04188c85a Added backwards compatibility for initSelection
Now if the old `initSelection` method is used, a warning will be
triggered in the console informing the user that it has now been
changed to `DataAdapter.current`, and they should create a custom
data adapter instead. We will still only call `initSelection` once,
and then default back to the old data adapter for calls after that.
This allows for mostly transparent support between versions.

This adds tests to ensure that `initSelection` operates the same as
it previously did, but now patches the `current` method of the
default data adapter.
2015-01-14 21:24:08 -05:00
..
data only verify when maximumSelectionCount is greater than 0 and add tests 2015-01-13 13:00:16 -05:00
dropdown Added selectOnClose 2015-01-11 21:47:17 -05:00
options Added backwards compatibility for initSelection 2015-01-14 21:24:08 -05:00
selection Normalize internal select/unselect events 2015-01-09 10:05:44 -05:00
utils Added inline searching for multiple selects 2014-11-22 19:21:46 -05:00
vendor Added Utils.Decorate and tests 2014-10-21 21:43:56 -04:00
mock.js Added selectOnClose 2015-01-11 21:47:17 -05:00