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

Adding declarations so Alpaca is never referenced from Global scope #719

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ambischof
Copy link
Contributor

@ambischof ambischof commented Jul 12, 2019

There were several places where Alpaca was references without first declaring var Alpaca = $.alpaca; so I added this declaration where it was absent. This will allow Alpaca to be used in environments without window.
It currently seems to work fine in the browser, due to assigning it directly to window, But we have been unable to use Alpaca in our unit tests because it won't run on node where there's no window. After these modifications, I was able to get it to work.

This will allow Alpaca to be used in environments with stricter evaluation
@ambischof ambischof changed the title Adding declarations so Alpaca is never referenced out of scope Adding declarations so Alpaca is never referenced from Global scope Jul 15, 2019
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.

1 participant