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

remove useless iife

This commit is contained in:
Johann-S 2018-09-26 10:39:01 +02:00
parent 02c4444f6c
commit 7c7a1706c3
12 changed files with 3433 additions and 3475 deletions

View File

@ -8,7 +8,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Alert = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -177,7 +176,4 @@ const Alert = (($) => {
return Alert._jQueryInterface
}
return Alert
})($)
export default Alert

View File

@ -7,7 +7,6 @@ import $ from 'jquery'
* --------------------------------------------------------------------------
*/
const Button = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -169,7 +168,4 @@ const Button = (($) => {
return Button._jQueryInterface
}
return Button
})($)
export default Button

View File

@ -8,7 +8,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Carousel = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -522,7 +521,4 @@ const Carousel = (($) => {
return Carousel._jQueryInterface
}
return Carousel
})($)
export default Carousel

View File

@ -8,7 +8,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Collapse = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -397,7 +396,4 @@ const Collapse = (($) => {
return Collapse._jQueryInterface
}
return Collapse
})($)
export default Collapse

View File

@ -9,7 +9,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Dropdown = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -488,7 +487,5 @@ const Dropdown = (($) => {
return Dropdown._jQueryInterface
}
return Dropdown
})($, Popper)
export default Dropdown

View File

@ -18,7 +18,7 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
(($) => {
(() => {
if (typeof $ === 'undefined') {
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
}
@ -33,7 +33,7 @@ import Util from './util'
if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0')
}
})($)
})()
export {
Util,

View File

@ -8,7 +8,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Modal = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -573,7 +572,4 @@ const Modal = (($) => {
return Modal._jQueryInterface
}
return Modal
})($)
export default Modal

View File

@ -8,7 +8,6 @@ import Tooltip from './tooltip'
* --------------------------------------------------------------------------
*/
const Popover = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -182,7 +181,4 @@ const Popover = (($) => {
return Popover._jQueryInterface
}
return Popover
})($)
export default Popover

View File

@ -8,7 +8,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const ScrollSpy = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -326,7 +325,4 @@ const ScrollSpy = (($) => {
return ScrollSpy._jQueryInterface
}
return ScrollSpy
})($)
export default ScrollSpy

View File

@ -8,7 +8,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Tab = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -258,7 +257,4 @@ const Tab = (($) => {
return Tab._jQueryInterface
}
return Tab
})($)
export default Tab

View File

@ -9,7 +9,6 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Tooltip = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
@ -719,7 +718,4 @@ const Tooltip = (($) => {
return Tooltip._jQueryInterface
}
return Tooltip
})($, Popper)
export default Tooltip

View File

@ -7,7 +7,7 @@ import $ from 'jquery'
* --------------------------------------------------------------------------
*/
const Util = (($) => {
/**
* ------------------------------------------------------------------------
* Private TransitionEnd Helpers
@ -144,7 +144,4 @@ const Util = (($) => {
setTransitionEndSupport()
return Util
})($)
export default Util