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-24 11:12:45 +0300
committerJohann-S <johann.servoire@gmail.com>2017-10-24 13:39:25 +0300
commit62fbb23ee61999e362cd8ade6073732a46466077 (patch)
tree4407025061f33fc39da7526f544b773f7457078c /js/src/index.js
parentca4ad8bee8000617c2ae1a08afe7af1103058776 (diff)
Change Rollup config to wrap our dist files with jQuery instead of $
Diffstat (limited to 'js/src/index.js')
-rw-r--r--js/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/index.js b/js/src/index.js
index 1697a709b7..51d09b4e29 100644
--- a/js/src/index.js
+++ b/js/src/index.js
@@ -18,7 +18,7 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
-(() => {
+(($) => {
if (typeof $ === 'undefined') {
throw new Error('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')
}
-})(Util.jQuery)
+})($)
export {
Util,