Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Core: Implement .even() & .odd() to replace POS :even & :odd#4485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mgol merged 3 commits intojquery:masterfrommgol:even-odd
Sep 24, 2019

Conversation

mgol
Copy link
Member

Summary

Implement .even() & .odd() to replace POS :even & :odd. The current version adds 28 bytes; it'd be slightly smaller (+25 bytes) to rely on.filter() but that'd makecore depend ontraversing/findFilter.

Checklist

@mgol
Copy link
MemberAuthor

mgol commentedSep 16, 2019
edited
Loading

@jquery/core If we want to make the migration away from POS selectors easier, it might be worth releasing the next jQuery as3.5.0 instead of3.4.2 with.odd()/.even() implemented. Thoughts?

Mapiac reacted with eyes emoji

Copy link
Member

@timmywiltimmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes and yes 3.5.

@mgolmgol added this to the3.4.2 milestoneSep 23, 2019
@dmethvin
Copy link
Member

This definitely will make migration easier.

@mgolmgol merged commit78420d4 intojquery:masterSep 24, 2019
@mgolmgol deleted the even-odd branchSeptember 24, 2019 00:04
mgol added a commit that referenced this pull requestSep 24, 2019
`:even` & `:odd` are deprecated since jQuery 3.4.0 & will be removed in 4.0.0.The new `even()` & `odd()` methods will make the migration easier.Closesgh-4485(cherry picked from commit78420d4)
@locklockbot locked asresolvedand limited conversation to collaboratorsMar 22, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@timmywiltimmywiltimmywil approved these changes

Assignees
No one assigned
Labels
Milestone
3.5.0
Development

Successfully merging this pull request may close these issues.

3 participants
@mgol@dmethvin@timmywil

[8]ページ先頭

©2009-2025 Movatter.jp