0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +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
})(jQuery)
})($)
export default Alert

View File

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

View File

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

View File

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

View File

@ -445,6 +445,6 @@ const Dropdown = (() => {
return Dropdown
})(jQuery, Popper)
})($, Popper)
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.')
}
@ -29,7 +29,7 @@ import Util from './util'
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')
}
})(jQuery)
})($)
export {
Util,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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