Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sigma-andex
Copy link
Contributor

Prerequisites

  • Before opening a pull request, please check the HTML standard (https://dom.spec.whatwg.org/). If it doesn't appear in this spec, it may be present in the spec for one of the other 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:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@sigma-andex
Copy link
Contributor Author

🏓 @JordanMartinez @thomashoneyman

@sigma-andex
Copy link
Contributor Author

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
Comment on lines 1 to 3
@@ -1,3 +1,3 @@
export function window() {
export function windowImpl() {
return window;
}
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@JordanMartinez
Copy link
Contributor

Good catch!

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