Skip to content

Preserve reference to global this.#43

Open
wtcross wants to merge 2 commits into
corbanbrook:masterfrom
wtcross:preserve-this-reference
Open

Preserve reference to global this.#43
wtcross wants to merge 2 commits into
corbanbrook:masterfrom
wtcross:preserve-this-reference

Conversation

@wtcross
Copy link
Copy Markdown

@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
Copy Markdown

Good job, I suppose this PR should be merged!

@CaperCube
Copy link
Copy Markdown

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