Skip to content

Commit

Permalink
Regroup our jQuery check in the same IIFE
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S authored and XhmikosR committed Aug 31, 2017
1 parent c3fe53c commit a4667be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import Util from './util'
* --------------------------------------------------------------------------
*/

if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
}

(() => {
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
}

const version = $.fn.jquery.split(' ')[0].split('.')
const min = 3
const max = 4
Expand Down

0 comments on commit a4667be

Please sign in to comment.