|
|
|
|
|
by carsongross
4152 days ago
|
|
Well, it's a library, not a framework: you can use it for as much or as little of your app as you like with as little as a single attribute declaration doing something useful for you. On "use strict", my understanding was that it applies per script: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... Strict mode applies to entire scripts or to individual functions. Am I misunderstanding? |
|
Since the rest of your script is already enclosed inside a single function, simply move the "use strict" a few lines down so it is the first line in that function. Then it will only apply to your own code.