-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
m.domFor(): workaround for unintentional mangling. Fix #2842 #2981
Conversation
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.
Thanks @kfule, great find.
Approved, but I think a comment above the change referencing this PR would be useful. As my first thought would be to replace that logic with destructuring if I didn't know better.
@JAForbes |
@JAForbes Sorry, I found another destructuring in domFor(). This is not related to the bug, but it would be better to change it to keep the code consistency. |
Thanks @kfule, I'll leave this for a day to give @MithrilJS/admins a chance to take a view, but if no objections after that we'll merge it 👍 |
Refactoring of domFor() for the internal bundler.
Description
#2842 appears to be caused by a combination of the mangling of the internal bundler and the parameter destructuring of domFor().
mithril.js/mithril.js
Line 157 in cfa890f
This pr avoids the parameter destructuring to fix the issue.
Motivation and Context
fix #2842
How Has This Been Tested?
Observing behavior of reproduction codes on the flems (#2842 (comment)) by replacing with the generated mithril.(min.)js.
Of course,
npm run test
has passed.Types of changes
Checklist