1
0
mirror of synced 2024-11-23 05:26:10 +03:00
select2/tests
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
..
data Improve data array speeds 2014-11-07 11:17:37 -05:00
utils Linted tests 2014-10-21 21:43:57 -04:00
vendor Added Utils.Decorate and tests 2014-10-21 21:43:56 -04:00