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
Change lexical scope utils #2307
Conversation
src/js/utils/window_watchers.js
Outdated
} | ||
|
||
if (Array.isArray(windows)) { | ||
windows.forEach((el) => applyBinding(el, key, val)); | ||
windows.forEach((el) => this.applyBinding(el, key, 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.
Why are you making this recursive?
src/js/utils/window_watchers.js
Outdated
this.applyBinding(windows, key, val); | ||
} | ||
|
||
windowWatcherUtil.applyBinding = function(win, key, 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.
Keeping this as a local scoped function seems to be an easier to understand way of doing this.
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.
Fixed as per review
919e7f7
to
9dc8e32
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.