Move 'use strict'; inside of containing function

It is dangerious to put 'use strict' outside of a containing
function—if you concatenate this file with others when deploying a
site (as you should), then it'll throw the entire set of scripts
into strict mode, which could cause disastrous incompatibilities for
projects developed without 'use strict' in mind.
This commit is contained in:
Adam Bowen
2012-09-21 15:13:02 -05:00
parent 206f55650e
commit 6e5a90ad0c

View File

@@ -16,8 +16,8 @@
* to render your ideal measure.
*
*/
'use strict';
(function($) {
'use strict';
function calculateIdealLineLength() {
// Set to Bringhurst's recommendation for an ideal measure