1
0
mirror of synced 2025-02-03 21:59:24 +03:00
Kevin Brown 4fc874a3ae Improve jQuery performance issues
This improves a regression added in b9b55cec4403f69d999ff6c3b90472805dfbed71
that reduced performance for large number of options when using a
jQuery collection object to append multiple options instead of
using a bare array containing the jQuery elements.

As `$.fn.add` is only required for jQuery 1.7.x, we can use a
utility function that only falls back to it for that specific
version of jQuery, and uses `$.fn.append` with an array for all
other versions.

This closes https://github.com/select2/select2/issues/3230.
2015-04-05 20:08:33 -04:00
..
2015-03-18 09:44:04 -04:00
2015-04-05 20:08:33 -04:00