mirror of
https://github.com/jbrewer/Responsive-Measure.git
synced 2026-01-10 22:57:56 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user