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

Qualify named reference for closure compiler #32

Closed
wants to merge 1 commit into from

Conversation

schnerd
Copy link

@schnerd schnerd commented Jul 6, 2015

We use Google Closure Compiler in our build process, and noticed that persist was throwing ReferenceError: Can't find variable: swfobject. It turns out that closure compiler assumes that named references will never throw. This commit instead checks if swfobject is defined globally using window.swfobject instead of a try catch.

@schnerd schnerd closed this Mar 29, 2021
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.

None yet

1 participant