File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module.exports = function (grunt) {
33
33
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
34
34
' */\n' ,
35
35
// NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too.
36
- jqueryCheck : 'if (typeof jQuery = == \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n' ,
36
+ jqueryCheck : 'if (typeof define == \'undefined\' && typeof exports == \'undefined\' && typeof jQuery == \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n' ,
37
37
38
38
// Task configuration.
39
39
clean : {
Original file line number Diff line number Diff line change 4
4
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
5
*/
6
6
7
- if ( typeof jQuery = == 'undefined' ) { throw new Error ( 'Bootstrap\'s JavaScript requires jQuery' ) }
7
+ if ( typeof define == 'undefined' && typeof exports == 'undefined' && typeof jQuery == 'undefined' ) { throw new Error ( 'Bootstrap\'s JavaScript requires jQuery' ) }
8
8
9
9
/* ========================================================================
10
10
* Bootstrap: transition.js v3.1.1
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
306
306
307
307
function generateJS ( preamble ) {
308
308
var $checked = $ ( '#plugin-section input:checked' )
309
- var jqueryCheck = 'if (typeof jQuery === " undefined" ) { throw new Error(" Bootstrap\'s JavaScript requires jQuery" ) }\n\n'
309
+ var jqueryCheck = 'if (typeof define == \'undefined\' && typeof exports == \' undefined\' && typeof jQuery == \'undefined\' ) { throw new Error(\' Bootstrap\\\ 's JavaScript requires jQuery\' ) }\n\n'
310
310
311
311
if ( ! $checked . length ) return false
312
312
You can’t perform that action at this time.
0 commit comments