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

Remove global from window helpers #764

Merged
merged 3 commits into from
Jun 7, 2018
Merged

Conversation

fetis
Copy link
Contributor

@fetis fetis commented May 31, 2018

Hello,

  • I removed global from window helpers to make it Angular 6 compatible.
  • Also, configured webpack to prevent issue global in the future (it does it automatically when encounters this variable).
  • And some minor code cleanup.

I left current testing approach intact (manually mock window object). I think in the future it can be replaced with JSDOM or similar implementation

Related issues #759 #755 #754 #753 #748

@fetis fetis changed the title Remove glboal from window helpers Remove global from window helpers May 31, 2018
@luisrudge
Copy link
Contributor

@fetis
Copy link
Contributor Author

fetis commented May 31, 2018

I assume it's because of this change https://github.com/auth0/auth0.js/pull/764/files#diff-fa3d40d414115b7a8cf9ef99f7282b22R173, which I took as someone accidentally duplicated the line.s

But I think it should be restored in a more explicit way, because popup_handler may return the current instance

@fetis fetis mentioned this pull request May 31, 2018
3 tasks
@luisrudge
Copy link
Contributor

ahaha, yeah.. good catch! That's probably it, considering it's testing should open the window once

@fetis
Copy link
Contributor Author

fetis commented May 31, 2018

I've fixed it. Should go back to normal now.

@luisrudge luisrudge merged commit 5ce9c00 into auth0:master Jun 7, 2018
@luisrudge
Copy link
Contributor

Thanks for the PR! 🎉

@luisrudge luisrudge added this to the v9.6.1 milestone Jun 7, 2018
bors bot referenced this pull request in mozilla/delivery-console Jun 7, 2018
183: Update dependency auth0-js to v9.6.1 r=rehandalal a=renovate[bot]

This Pull Request updates dependency [auth0-js](https://github.com/auth0/auth0.js) from `v9.6.0` to `v9.6.1`



<details>
<summary>Release Notes</summary>

### [`v9.6.1`](https://github.com/auth0/auth0.js/blob/master/CHANGELOG.md#v961httpsgithubcomauth0auth0jstreev961-2018-06-07)
[Compare Source](auth0/auth0.js@v9.6.0...v9.6.1)
[Full Changelog](auth0/auth0.js@v9.6.0...v9.6.1)

**Fixed**
- Remove global from window helpers [\#&#8203;764](`https://github.com/auth0/auth0.js/pull/764`) ([fetis])

---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).

Co-authored-by: Renovate Bot <bot@renovateapp.com>
@fetis
Copy link
Contributor Author

fetis commented Jun 8, 2018

thanks for merge

@fetis fetis deleted the fix/global_scope branch June 8, 2018 08:11
@luisrudge
Copy link
Contributor

This was already released in 9.6.1 🎉

@luisrudge luisrudge modified the milestones: v9.6.1, v9.7.0 Jul 12, 2018
kmaida added a commit to kmaida/blog that referenced this pull request Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants