1
0
mirror of synced 2024-11-26 23:06:02 +03:00
select2/tests/data
Kevin Brown 05ddbec1a7 Improve data array speeds
This improves the speeds of creating the `<option>` tags for array
data. By creating the HTML ahead of time and putting it into an
`<option>` element before passing it to jQuery, it cuts down on the
time it takes for jQuery to process the HTML string and convert it
into DOM elements. This proved to be incredibly slow.

This also changes the `item` function to return early when the
data exists. The `$e.data` call has also been switched to a
`$.data` call, which doesn't need to check the DOM to see if the
data attributes already exist. This cuts down on a bit of wasted
time, as the `data` key should never be present in the DOM, and it
should be ignored if it is.
2014-11-07 11:17:37 -05:00
..
array-tests.js Added test to make sure the options are generated 2014-11-06 12:12:43 -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 Improve data array speeds 2014-11-07 11:17:37 -05:00
select.html Added tests for the query function 2014-10-21 21:43:59 -04:00