1
0
mirror of synced 2024-11-22 21:16:10 +03:00
select2/dist/js
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
..
i18n Added Spanish translation and fixed the example 2014-11-05 11:25:41 -05:00
select2.amd.full.js Improve data array speeds 2014-11-07 11:17:37 -05:00
select2.amd.js Improve data array speeds 2014-11-07 11:17:37 -05:00
select2.full.js Improve data array speeds 2014-11-07 11:17:37 -05:00
select2.full.min.js Improve data array speeds 2014-11-07 11:17:37 -05:00
select2.js Improve data array speeds 2014-11-07 11:17:37 -05:00
select2.min.js Improve data array speeds 2014-11-07 11:17:37 -05:00