mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Update Gruntfile.js fixing undefined jQuery check
The check to see if jQuery was defined as incorrect causing the "Bootstrap requires jQuery" message to only be displayed if jQuery is defined and has a value which equates to `false`.
This commit is contained in:
parent
1809894e8a
commit
429e92fd58
@ -15,7 +15,7 @@ module.exports = function(grunt) {
|
|||||||
'*\n' +
|
'*\n' +
|
||||||
'* Designed and built with all the love in the world by @mdo and @fat.\n' +
|
'* Designed and built with all the love in the world by @mdo and @fat.\n' +
|
||||||
'*/\n',
|
'*/\n',
|
||||||
jqueryCheck: 'if (!jQuery) { throw new Error(\"Bootstrap requires jQuery\") }\n\n',
|
jqueryCheck: 'if (typeof jQuery === "undefined") { throw new Error(\"Bootstrap requires jQuery\") }\n\n',
|
||||||
|
|
||||||
// Task configuration.
|
// Task configuration.
|
||||||
clean: {
|
clean: {
|
||||||
|
Loading…
Reference in New Issue
Block a user