twentytwenty icon indicating copy to clipboard operation
twentytwenty copied to clipboard

Remove usage of :first, :last (deprecated in jQuery 3.4.0)

Open Xon opened this issue 5 years ago • 0 comments

Ref #108

http://blog.jquery.com/2019/04/10/jquery-3-4-0-released/

Specifically, jQuery 3.4.0 is deprecating :first, :last, :eq, :even, :odd, :lt, :gt, and :nth. When we remove Sizzle, we’ll replace it with a small wrapper around querySelectorAll, and it would be almost impossible to reimplement these selectors without a larger selector engine.

We think this trade-off is worth it. Keep in mind we will still support the positional methods, such as .first, .last, and .eq. Anything you can do with positional selectors, you can do with positional methods instead. They perform better anyway.

Xon avatar Apr 11 '19 05:04 Xon