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

Invoke strict mode in the anonymous function wrapper #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Invoke strict mode in the anonymous function wrapper #6

wants to merge 4 commits into from

Conversation

shinnn
Copy link

@shinnn shinnn commented Nov 28, 2013

For now, domvas.js invokes strict mode for the entire script.
It will causes unintended behavior when domvas.js is concatenated or minified with other non-strict-mode scripts into a single file.
So I transferred "use strict"; statement into the anonymous function's body.

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