Skip to content

Using "immediate" parents to describe the parent() method, per #537#543

Closed
mattlunn wants to merge 1 commit into
jquery:masterfrom
mattlunn:537
Closed

Using "immediate" parents to describe the parent() method, per #537#543
mattlunn wants to merge 1 commit into
jquery:masterfrom
mattlunn:537

Conversation

@mattlunn
Copy link
Copy Markdown
Contributor

@mattlunn mattlunn commented Aug 2, 2014

No description provided.

Comment thread entries/parent.xml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is definitely an improvement, but I think we can do even better. Maybe something like this…

Given a jQuery object that represents a set of DOM elements, the parent() method traverses to the immediate parent of each of these elements in the DOM tree and constructs a new jQuery object from the matching elements.

What do you think, @mattlunn? If you like it, feel free to update this PR and I'll merge it in.

@gnarf
Copy link
Copy Markdown
Member

gnarf commented Dec 22, 2014

Since we haven't heard back, I'm going to take carls suggestion and add it to the docs myself. Thanks for the contribution here!

@gnarf gnarf closed this Dec 22, 2014
gnarf added a commit that referenced this pull request Dec 22, 2014
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.

3 participants