Skip to content

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

Open
Xon wants to merge 1 commit intozurb:masterfrom
Xon:patch-1
Open

Remove usage of :first, :last (deprecated in jQuery 3.4.0)#109
Xon wants to merge 1 commit intozurb:masterfrom
Xon:patch-1

Conversation

@Xon
Copy link
Copy Markdown

@Xon Xon commented Apr 11, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants