Skip to content
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

bugfix: Sort attributes to make rr_* attributes handled last #970

Merged
merged 4 commits into from
Sep 26, 2022

Conversation

Juice10
Copy link
Contributor

@Juice10 Juice10 commented Aug 22, 2022

rr_dataURL overwrites src attribute, because of this we need to evaluate rr_dataURL last so src doesn't accidentally get overwritten again.

`rr_dataURL` overwrites `src` attribute, because of this we need to evaluate `rr_dataURL` last so it doesn't accidentally get overwritten again.
@Juice10 Juice10 changed the title Sort attributes to make rr_* attributes handled last bugfix: Sort attributes to make rr_* attributes handled last Aug 22, 2022
@Juice10
Copy link
Contributor Author

Juice10 commented Sep 16, 2022

Had a chat with @eoghanmurray and @Mark-Fenng, I'm going to do a refactor which eliminates the loop overhead.

Copy link
Contributor

@eoghanmurray eoghanmurray left a comment

Choose a reason for hiding this comment

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

I think you've got the alternative version without the specialAttributes array, but with the boolean flag?

@Juice10
Copy link
Contributor Author

Juice10 commented Sep 21, 2022

I think you've got the alternative version without the specialAttributes array, but with the boolean flag?

@eoghanmurray I did some performance tests and this one was faster so I ended up going with this

@eoghanmurray
Copy link
Contributor

Cool, happy to approve!
This way is also elegant now that I see it.
I thought the specialAttributes was from before Friday when we had a chat about it.

@Juice10
Copy link
Contributor Author

Juice10 commented Sep 21, 2022

@eoghanmurray thanks Eoghan! Yes it was from our chat initially. But it got deleted and then came back again

Copy link
Member

@YunFeng0817 YunFeng0817 left a comment

Choose a reason for hiding this comment

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

Great! A clean and performant version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants