Skip to content

unwrap: add selector argument #711

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2015
Merged

Conversation

arthurvr
Copy link
Member

@arthurvr arthurvr commented Apr 9, 2015

PR for the v3 branch. Adds a .unwrap(selector) signature. Fixes #689.

Ref jquery/jquery@7b09235

<signature>
<added>3.0</added>
<argument name="selector" type="String" optional="true">
<desc>A selector to check the parent element against. If the parent element does not match the selector, the element won't be unwrapped.</desc>
Copy link
Member

Choose a reason for hiding this comment

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

There can be multiple elements so I'd change this to "If an element's parent does not" to emphasize that. Otherwise LGTM!

@arthurvr arthurvr merged commit 5d76e7e into jquery:v3.0.0-docs Apr 9, 2015
@arthurvr arthurvr deleted the unwrap branch April 9, 2015 16:28
arthurvr added a commit that referenced this pull request Apr 9, 2015
@dmethvin dmethvin added this to the 3.0.0 milestone May 1, 2015
AurelioDeRosa pushed a commit that referenced this pull request May 23, 2016
timmywil pushed a commit that referenced this pull request Jun 9, 2016
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