Skip to content

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