diff options
author | Bardi Harborow <bardi@bardiharborow.com> | 2016-12-31 08:25:26 +0300 |
---|---|---|
committer | Bardi Harborow <bardi@bardiharborow.com> | 2016-12-31 08:49:15 +0300 |
commit | 869dc6403805ee524b8321b40168d1022e17602c (patch) | |
tree | 948eb11e844fc7e8195aee5ddc001fb2ec080026 /docs/assets/js | |
parent | a8100e1f0113c82fea78d1d87e62ceba630fd18b (diff) |
Change remaining JS files to comply with ESLint config.
Diffstat (limited to 'docs/assets/js')
-rw-r--r-- | docs/assets/js/ie-emulation-modes-warning.js | 4 | ||||
-rw-r--r-- | docs/assets/js/ie10-viewport-bug-workaround.js | 4 | ||||
-rw-r--r-- | docs/assets/js/src/application.js | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/docs/assets/js/ie-emulation-modes-warning.js b/docs/assets/js/ie-emulation-modes-warning.js index 452c1268f6..7996b9e340 100644 --- a/docs/assets/js/ie-emulation-modes-warning.js +++ b/docs/assets/js/ie-emulation-modes-warning.js @@ -10,7 +10,7 @@ */ // Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes. (function () { - 'use strict'; + 'use strict' function emulatedIEMajorVersion() { var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent) @@ -49,4 +49,4 @@ if (emulated !== nonEmulated) { window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!') } -})(); +}()) diff --git a/docs/assets/js/ie10-viewport-bug-workaround.js b/docs/assets/js/ie10-viewport-bug-workaround.js index 0aecf6b305..36afc46b85 100644 --- a/docs/assets/js/ie10-viewport-bug-workaround.js +++ b/docs/assets/js/ie10-viewport-bug-workaround.js @@ -9,7 +9,7 @@ // https://getbootstrap.com/getting-started/#support-ie10-width (function () { - 'use strict'; + 'use strict' if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement('style') @@ -21,4 +21,4 @@ document.head.appendChild(msViewportStyle) } -})(); +}()) diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 529b0c1b89..fee96113d7 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -12,8 +12,8 @@ /* global Clipboard, anchors */ -!function ($) { - 'use strict'; +(function ($) { + 'use strict' $(function () { @@ -86,11 +86,11 @@ }) -}(jQuery) +}(jQuery)) ;(function () { - 'use strict'; + 'use strict' - anchors.options.placement = 'left'; + anchors.options.placement = 'left' anchors.add('.bd-content > h1, .bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') -})(); +}()) |