This repository was archived by the owner on Sep 8, 2020. It is now read-only.
Commit 881f8c7
committed
Don't use 'use strict'; on the global scope
If this file will be concatenated with other files, it will enforce Strict Mode on all of the other code it's concatenated with.
Reference (under ```How do you use it?```):
http://www.nczonline.net/blog/2012/03/13/its-time-to-start-using-javascript-strict-mode/
By moving ```'use strict';``` inside the function, we can prevent that and still get the benefits.1 parent 35974cf commit 881f8c7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments