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

Use strict inside functions #1

Open
rjwaring opened this issue Sep 24, 2014 · 1 comment
Open

Use strict inside functions #1

rjwaring opened this issue Sep 24, 2014 · 1 comment

Comments

@rjwaring
Copy link
Contributor

Keep 'use strict' inside functions, otherwise it may affect other scripts on the page. See https://github.com/boxuk/angular-symfony-translation/blob/master/src/app.js#L1

@TomSeldonBoxUK
Copy link
Contributor

Will investigate, but first thought is that shouldn't be an issue in this case as when compiled everything is placed in an anonymous function to avoid polluting the global scope.

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

No branches or pull requests

2 participants