Skip to content

Commit

Permalink
Add semicolons to the start of each js file
Browse files Browse the repository at this point in the history
Add a leading semicolon in front of immediately-invoked function
expressions, so that each file can be safely concatenated.
  • Loading branch information
gemmaleigh committed Oct 19, 2016
1 parent ca84786 commit 447db49
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion javascripts/govuk/analytics/analytics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var GOVUK = global.GOVUK || {}
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/analytics/download-link-tracker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/analytics/error-tracking.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Extension to track errors using google analytics as a data store.
(function (global) {
;(function (global) {
'use strict'

var GOVUK = global.GOVUK || {}
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/analytics/external-link-tracker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var GOVUK = global.GOVUK || {}
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/analytics/mailto-link-tracker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/analytics/print-intent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Extension to monitor attempts to print pages.
(function (global) {
;(function (global) {
'use strict'

var GOVUK = global.GOVUK || {}
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/modules.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/modules/auto-track-event.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var GOVUK = global.GOVUK || {}
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/multivariate-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/primary-links.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/selection-buttons.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/shim-links-with-button-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// object with your own selector for the target elements and addional keyup
// codes if there becomes a need to do so. For example:
// GOVUK.shimLinksWithButtonRole.init({ selector: '[role="button"]' });
(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/govuk/stop-scrolling-at-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Height is passed in separatly incase the scrolling element has no height
// itself.

(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down
2 changes: 1 addition & 1 deletion javascripts/stageprompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
// <a class="help-button" href="#" data-journey-click="stage:help:info">See more info...</a>

(function (global) {
;(function (global) {
'use strict'

var $ = global.jQuery
Expand Down

0 comments on commit 447db49

Please sign in to comment.