-
Notifications
You must be signed in to change notification settings - Fork 24
Fix broken window export, causing the function to return itself #75
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
Fix broken window export, causing the function to return itself #75
Conversation
This seems to have been introduced with the lebab updates. In the working group package set it was using this version: https://github.com/kl0tl/purescript-web-html/blob/es-modules/src/Web/HTML.js |
src/Web/HTML.js
Outdated
export function window() { | ||
export function windowImpl() { | ||
return window; | ||
} |
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.
Can't this fix just be
const windowImpl = function() {
return window;
}
export windowImpl as window;
similar to what we've done for new
?
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
Good catch! |
Prerequisites
purescript-web
projects. Although MDN is a great resource, it is not a suitable reference for this project.Description of the change
Bugfix: Export of window is wrong, causing the function to return itself.
Checklist: