-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Fix: organize prop & attr code to be similar #2427
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
Conversation
This reverts commit d0388e9.
|
/cc @gibson042, since you reviewed pr to |
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.
Why?
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.
This existed in the code before my previous commit. See
Line 6 in 0de798d
| "./val", |
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.
It doesn't exist in current compat:
Line 6 in d0388e9
| "../selector" |
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.
Yes because that was a bad merge from master by yours truly 😊
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.
Ah, ok :)
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.
I was thinking to unite those commits so revert one would go away and from history stand point, it would be just support commit
Now we're commenting on a Frankenstein diff...
nicely put, lol
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.
IMO it's harder to see the logic of the change when it's modifying the previous bad merge.
But however your prefer, just my opinion.
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.
We can compare it like that https://github.com/pgilad/jquery/compare/6df1bf9be818b8955f94113aecc689fdf7a2e172...ab692d396542b1a65a93460359fe1d8c6ca6ccf6
Although, i'm also not pushing for specific land strategy
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.
I wonder, we don't have it in master plus it seems we don't use this declaration, test doesn't fail without it. Maybe it is needed to build this module and that is indirect dependency?
@timmywil? We can deal with this later though
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.
My guess is it's leftover from a prop hook for retrieving button value or something. It doesn't seem necessary anymore.
|
I would like to merge it, waiting couple hours for @gibson042 response |
|
Hey @markelog thanks for the review. I added some extra blank spaces where needed. |
src/attributes/attr.js
Outdated
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.
Would love to change this to simple if...else, but i guess this story for another day
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.
Done
|
Closed via f2bcf87 |
|
It seems we're passed on first try, thank you! |
|
👏 |
This fixes the previous faulty commit of d0388e9 on the
compatbranch.The changes of that commit were reverted and the new (hopefully) correct changes were added again.