Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2017-10-03 15:27:36 +0300
committerJohann-S <johann.servoire@gmail.com>2017-10-04 10:55:32 +0300
commitb29b1e155880ac953899889c9cbb67f7f7df0529 (patch)
treedb9d6923c082243d765c57885992db8dd26a70b5
parent722407f502f3589a4b4a110bb3a374fd057bb85d (diff)
Use imported jQuery object
-rw-r--r--js/src/alert.js2
-rw-r--r--js/src/button.js2
-rw-r--r--js/src/carousel.js2
-rw-r--r--js/src/collapse.js2
-rw-r--r--js/src/dropdown.js2
-rw-r--r--js/src/index.js4
-rw-r--r--js/src/modal.js2
-rw-r--r--js/src/popover.js2
-rw-r--r--js/src/scrollspy.js2
-rw-r--r--js/src/tab.js2
-rw-r--r--js/src/tooltip.js2
-rw-r--r--js/src/util.js2
12 files changed, 13 insertions, 13 deletions
diff --git a/js/src/alert.js b/js/src/alert.js
index 9fcf088b12..9d6c498b94 100644
--- a/js/src/alert.js
+++ b/js/src/alert.js
@@ -189,6 +189,6 @@ const Alert = (() => {
return Alert
-})(jQuery)
+})($)
export default Alert
diff --git a/js/src/button.js b/js/src/button.js
index a121b8e13a..7bf5e87dd7 100644
--- a/js/src/button.js
+++ b/js/src/button.js
@@ -182,6 +182,6 @@ const Button = (() => {
return Button
-})(jQuery)
+})($)
export default Button
diff --git a/js/src/carousel.js b/js/src/carousel.js
index a5ad02541a..3a6d7a4bc5 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -519,6 +519,6 @@ const Carousel = (() => {
return Carousel
-})(jQuery)
+})($)
export default Carousel
diff --git a/js/src/collapse.js b/js/src/collapse.js
index fa082f1333..d29e487228 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -404,6 +404,6 @@ const Collapse = (() => {
return Collapse
-})(jQuery)
+})($)
export default Collapse
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 6681df668c..3a910996b0 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -445,6 +445,6 @@ const Dropdown = (() => {
return Dropdown
-})(jQuery, Popper)
+})($, Popper)
export default Dropdown
diff --git a/js/src/index.js b/js/src/index.js
index 84a27880e9..2629e507fc 100644
--- a/js/src/index.js
+++ b/js/src/index.js
@@ -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,
diff --git a/js/src/modal.js b/js/src/modal.js
index 689e93bc15..fb787208d8 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -585,6 +585,6 @@ const Modal = (() => {
return Modal
-})(jQuery)
+})($)
export default Modal
diff --git a/js/src/popover.js b/js/src/popover.js
index aeccdf7501..89c78f4fee 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -189,6 +189,6 @@ const Popover = (() => {
return Popover
-})(jQuery)
+})($)
export default Popover
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js
index e8f0d3101b..c844bd5304 100644
--- a/js/src/scrollspy.js
+++ b/js/src/scrollspy.js
@@ -335,6 +335,6 @@ const ScrollSpy = (() => {
return ScrollSpy
-})(jQuery)
+})($)
export default ScrollSpy
diff --git a/js/src/tab.js b/js/src/tab.js
index 2a554c287d..17699dfbe4 100644
--- a/js/src/tab.js
+++ b/js/src/tab.js
@@ -282,6 +282,6 @@ const Tab = (() => {
return Tab
-})(jQuery)
+})($)
export default Tab
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index ca7e52b14b..8d262f4ad6 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -728,6 +728,6 @@ const Tooltip = (() => {
return Tooltip
-})(jQuery, Popper)
+})($, Popper)
export default Tooltip
diff --git a/js/src/util.js b/js/src/util.js
index 7eb25de558..a756600144 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -161,6 +161,6 @@ const Util = (() => {
return Util
-})(jQuery)
+})($)
export default Util