1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 13:59:06 +02:00

Change remaining JS files to comply with ESLint config.

This commit is contained in:
Bardi Harborow
2016-12-31 16:25:26 +11:00
parent a8100e1f01
commit 869dc64038
7 changed files with 104 additions and 101 deletions

View File

@@ -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!')
}
})();
}())

View File

@@ -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)
}
})();
}())

View File

@@ -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')
})();
}())