resources/bootstrap/js/index.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 3

Size

Lines of Code 16
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 3
mnd 2
bc 2
fnc 1
bpm 2
cpm 3
noi 0
1
/**
2
 * --------------------------------------------------------------------------
3
 * Bootstrap (v4.6.0): index.js
4
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
 * --------------------------------------------------------------------------
6
 */
7
(function ($) {
8
  if (typeof $ === 'undefined') {
9
    throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
10
  }
11
12
  var version = $.fn.jquery.split(' ')[0].split('.');
13
  var minMajor = 1;
14
  var ltMajor = 2;
15
  var minMinor = 9;
16
  var minPatch = 1;
17
  var maxMajor = 4;
18
19
  if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
20
    throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
21
  }
22
})($);
23