Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Apr 10, 2020

Fixes #296

@mgol mgol mentioned this pull request Apr 10, 2020
@mgol
Copy link
Member Author

mgol commented Apr 10, 2020

@dmethvin The first commit is yours, my modifications in the second one.

Copy link
Member

@dmethvin dmethvin left a comment

Choose a reason for hiding this comment

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

Good to merge after removing the warning.

@mgol
Copy link
Member Author

mgol commented Apr 11, 2020

@dmethvin I removed warning on jQuery.cssNumber & added one comment & test. All in the last commit. PTAL.

@mgol
Copy link
Member Author

mgol commented Apr 11, 2020

@dmethvin This is a new warning so we probably need a new minor release, not a patch one. So the next one would be 3.3.0. Does that sound good? If yes then we need to change the 3.2.1 milestone to 3.3.0.

@dmethvin
Copy link
Member

Agreed, I've renamed the next milestone.

@mgol mgol added this to the 3.3.0 milestone Apr 13, 2020
@mgol mgol changed the title CSS: Warn and fill jQuery.cssNumber and .css(name, Number) CSS: Warn and fill .css(name, Number) Apr 14, 2020
@mgol mgol merged commit 0d0d370 into jquery:master Apr 14, 2020
@mgol mgol deleted the cssNumber branch April 14, 2020 09:30
mgol added a commit to mgol/jquery that referenced this pull request Jul 18, 2020
The way warning agains number values in `.css()` setters was done in
jquery/jquery-migrate#337 and later refined in jquery/jquery-migrate#348
there's no need to send px-ed strings for `top` & `left` as they already
don't get the "px" suffix.

This reverts commit 57038fa.

Ref jquery/jquery-migrate/pull/337
Ref jquery/jquery-migrate/pull/348
mgol added a commit to mgol/jquery that referenced this pull request Jul 18, 2020
The way warning against number values in `.css()` setters was done in
jquery/jquery-migrate#337 and later refined in jquery/jquery-migrate#348
there's no need to send px-ed strings for `top` & `left` as they already
don't get the "px" suffix.

This reverts commit 57038fa.

Ref jquery/jquery-migrate/pull/337
Ref jquery/jquery-migrate/pull/348
mgol added a commit to jquery/jquery that referenced this pull request Jul 20, 2020
The way warning against number values in `.css()` setters was done in
jquery/jquery-migrate#337 and later refined in jquery/jquery-migrate#348
there's no need to send px-ed strings for `top` & `left` as they already
don't get the "px" suffix.

This reverts commit 57038fa.

Closes gh-4753
Ref jquery/jquery-migrate/pull/337
Ref jquery/jquery-migrate/pull/348
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn about jQuery.cssNumber

2 participants