Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #12840: remove undocumented parameter "pass" from .attr. Close gh…
- Loading branch information
Showing
3 changed files
with
33 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 comments
on commit 80d45a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have tests for jQuery( .., methods );
? Or did you remove the only (indirect) tests for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you referring to https://github.com/jquery/jquery/blob/master/test/unit/core.js#L104 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! 😄
There are still calls to
jQuery.access()
which pass 7 parameters. For example,.data()
uses all 7 params and setspass
tofalse
. We used to determine if function values should be executed based onpass
, but now it's based purely onvalue
. This breaks.data( "foo", function() {} )
.