0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Use imported jQuery object

This commit is contained in:
Johann-S 2017-10-03 14:27:36 +02:00
parent 722407f502
commit b29b1e1558
12 changed files with 13 additions and 13 deletions

View File

@ -189,6 +189,6 @@ const Alert = (() => {
return Alert return Alert
})(jQuery) })($)
export default Alert export default Alert

View File

@ -182,6 +182,6 @@ const Button = (() => {
return Button return Button
})(jQuery) })($)
export default Button export default Button

View File

@ -519,6 +519,6 @@ const Carousel = (() => {
return Carousel return Carousel
})(jQuery) })($)
export default Carousel export default Carousel

View File

@ -404,6 +404,6 @@ const Collapse = (() => {
return Collapse return Collapse
})(jQuery) })($)
export default Collapse export default Collapse

View File

@ -445,6 +445,6 @@ const Dropdown = (() => {
return Dropdown return Dropdown
})(jQuery, Popper) })($, Popper)
export default Dropdown export default Dropdown

View File

@ -19,7 +19,7 @@ import Util from './util'
*/ */
(() => { (() => {
if (typeof jQuery === 'undefined') { if (typeof $ === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
} }
@ -29,7 +29,7 @@ import Util from './util'
if (version[0] < min || version[0] >= max) { if (version[0] < min || version[0] >= max) {
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v3.0.0 but less than v4.0.0') throw new Error('Bootstrap\'s JavaScript requires at least jQuery v3.0.0 but less than v4.0.0')
} }
})(jQuery) })($)
export { export {
Util, Util,

View File

@ -585,6 +585,6 @@ const Modal = (() => {
return Modal return Modal
})(jQuery) })($)
export default Modal export default Modal

View File

@ -189,6 +189,6 @@ const Popover = (() => {
return Popover return Popover
})(jQuery) })($)
export default Popover export default Popover

View File

@ -335,6 +335,6 @@ const ScrollSpy = (() => {
return ScrollSpy return ScrollSpy
})(jQuery) })($)
export default ScrollSpy export default ScrollSpy

View File

@ -282,6 +282,6 @@ const Tab = (() => {
return Tab return Tab
})(jQuery) })($)
export default Tab export default Tab

View File

@ -728,6 +728,6 @@ const Tooltip = (() => {
return Tooltip return Tooltip
})(jQuery, Popper) })($, Popper)
export default Tooltip export default Tooltip

View File

@ -161,6 +161,6 @@ const Util = (() => {
return Util return Util
})(jQuery) })($)
export default Util export default Util