Skip to content

wrapAll: change description of function argument #745

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

Closed
wants to merge 1 commit into from

Conversation

arthurvr
Copy link
Member

For the v3 branch.

Fixes gh-605

@@ -14,8 +14,7 @@
<signature>
<added>1.4</added>
<argument name="function" type="Function">
<desc>A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, <code>this</code> refers to the current element in the set.</desc>
<argument name="index" type="Integer" />
<desc>A callback function returning the HTML content or jQuery object to wrap around all the matched elements. Within the function, <code>this</code> refers to the first element in the set. <strong>Prior to jQuery 3.0</strong>, the callback got called for every element in the set and received the index position of the element in the set as an argument.</desc>
Copy link
Member

Choose a reason for hiding this comment

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

How about changing "the callback got called" to "the callback was incorrectly called" because it was the wrong behavior.

Copy link
Member Author

Choose a reason for hiding this comment

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

That sounds like a good idea 👍

@dmethvin Added. LGTY?

@arthurvr arthurvr force-pushed the wrapall-function branch from c8e5ece to 4ed5972 Compare May 28, 2015 15:41
@dmethvin
Copy link
Member

👍

arthurvr added a commit that referenced this pull request May 29, 2015
@arthurvr
Copy link
Member Author

Closing as this is merged in the v3 branch.

@arthurvr arthurvr closed this May 29, 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