Skip to content

Invoke strict mode in the anonymous function wrapper#6

Open
shinnn wants to merge 4 commits intopbakaus:masterfrom
shinnn:master
Open

Invoke strict mode in the anonymous function wrapper#6
shinnn wants to merge 4 commits intopbakaus:masterfrom
shinnn:master

Conversation

@shinnn
Copy link
Copy Markdown

@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