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

Blaze-tool to ES6 #436

Merged
merged 3 commits into from
Dec 29, 2023
Merged

Blaze-tool to ES6 #436

merged 3 commits into from
Dec 29, 2023

Conversation

StorytellerCZ
Copy link
Collaborator

Update dependencies of blaze-tool
Migrate old vars to let and const.
Simplified version (so far) of #397

#397 had also some additional changes which I'm not that certain about.

if (attrs) {
attrsArray = [];
var needsHTMLAttrs = false;
let needsHTMLAttrs = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

needsHTMLAttrs is not defined in the tests. I assume this is a scoping issue and previously needsHTMLAttrs was simply wrong scoped and used outside it's defined scope and since it was a var this was possible.

I think this whole block of loops need some more refactoring effort. Maybe we can split it into several methods to better handle scoping?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, I was going just for the minimum reproduction to move things forward one step at a time.

@StorytellerCZ StorytellerCZ added this to the 2.8 milestone Dec 22, 2023
@Grubba27 Grubba27 merged commit 7960b61 into master Dec 29, 2023
2 checks passed
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.

3 participants