...when creating list with all inview elements cause there is no need to have a sorted element list.
This improves performance drastically when very many elements have to be checked, e.g. more than 200.
Also removed trailing whitespaces.
When all elements are members of the same document, the resulting collection from .add() will be sorted in document order;
that is, in order of each element's appearance in the document.
...when creating list with all inview elements cause there is no need to have a sorted element list. This improves performance drastically when very many elements have to be checked, e.g. more than 200. Also removed trailing whitespaces.
From http://api.jquery.com/add/