Bug Tracker

Modify

Ticket #6966 (closed enhancement: duplicate)

Opened 3 years ago

Last modified 2 years ago

.andSelf(selector)

Reported by: dmethvin Owned by:
Priority: low Milestone:
Component: traversing Version: 1.4.2
Keywords: needsreview Cc:
Blocking: Blocked by:

Description

Comment on api.jquery.com from Nick Craver:

What are the chances of giving this the ability to take a selector? When any descendant or current elements that match the current selector, there's not a quick way to do this, currently it's .find(selector).andSelf().filter(selector) or some combination, would be nice if .andSelf() was able to take a selector already, doing the filter internally.

Change History

comment:1 Changed 3 years ago by snover

  • Keywords needsreview added
  • Priority set to low

Smells like bikeshed/feature creep. Marking for review.

comment:2 Changed 3 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:3 Changed 2 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to duplicate

comment:4 Changed 2 years ago by addyosmani

Duplicate of #4446.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.