aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBardi Harborow <[email protected]>2016-12-31 16:25:26 +1100
committerBardi Harborow <[email protected]>2016-12-31 16:49:15 +1100
commit869dc6403805ee524b8321b40168d1022e17602c (patch)
tree948eb11e844fc7e8195aee5ddc001fb2ec080026 /docs
parenta8100e1f0113c82fea78d1d87e62ceba630fd18b (diff)
downloadbootstrap-869dc6403805ee524b8321b40168d1022e17602c.tar.xz
bootstrap-869dc6403805ee524b8321b40168d1022e17602c.zip
Change remaining JS files to comply with ESLint config.
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/ie-emulation-modes-warning.js4
-rw-r--r--docs/assets/js/ie10-viewport-bug-workaround.js4
-rw-r--r--docs/assets/js/src/application.js12
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 452c1268f..7996b9e34 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 0aecf6b30..36afc46b8 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 529b0c1b8..fee96113d 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')
-})();
+}())