diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-11-26 20:12:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 20:12:00 +0300 |
commit | 593574d510050dc2d5eeafe70a58ae182f020480 (patch) | |
tree | 043a163d6c712121ca0fe1f34c419ab592b03185 /js/dist/util.js | |
parent | d61bba584f89c7df0d780a9ff214a58f7b58cb94 (diff) |
Release v4.4.0 (#29735)v4.4.0
Diffstat (limited to 'js/dist/util.js')
-rw-r--r-- | js/dist/util.js | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/js/dist/util.js b/js/dist/util.js index 0e9b3d0a72..cfc523ee1f 100644 --- a/js/dist/util.js +++ b/js/dist/util.js @@ -1,5 +1,5 @@ /*! - * Bootstrap util.js v4.3.1 (https://getbootstrap.com/) + * Bootstrap util.js v4.4.0 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ @@ -7,13 +7,13 @@ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = global || self, global.Util = factory(global.jQuery)); -}(this, function ($) { 'use strict'; +}(this, (function ($) { 'use strict'; $ = $ && $.hasOwnProperty('default') ? $['default'] : $; /** * -------------------------------------------------------------------------- - * Bootstrap (v4.3.1): util.js + * Bootstrap (v4.4.0): util.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ @@ -162,11 +162,28 @@ } return Util.findShadowRoot(element.parentNode); + }, + jQueryDetection: function jQueryDetection() { + if (typeof $ === 'undefined') { + throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); + } + + var version = $.fn.jquery.split(' ')[0].split('.'); + var minMajor = 1; + var ltMajor = 2; + var minMinor = 9; + var minPatch = 1; + var maxMajor = 4; + + 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.jQueryDetection(); setTransitionEndSupport(); return Util; -})); +}))); //# sourceMappingURL=util.js.map |