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

Preserve reference to global this. #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wtcross
Copy link

@wtcross wtcross commented Oct 26, 2020

This change preserves a reference to the global this as self
so that module bundlers that change context do not prevent this
package from working correctly. Otherwise, this will be undefined.

alexcastillo and others added 2 commits October 26, 2020 14:02
This change preserves a reference to the global `this` as `self`
so that module bundlers that change context do not prevent this
package from working correctly. Otherwise, `this` will be undefined.
@tczhangzhi
Copy link

Good job, I suppose this PR should be merged!

@CaperCube
Copy link

Is there a chance this might be merged? This fix is perfect!

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.

4 participants