Skip to content

Commit

Permalink
Update Gruntfile.js fixing undefined jQuery check
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
DeanMarkTaylor committed Sep 29, 2013
1 parent 1809894 commit 429e92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(grunt) {
'*\n' +
'* Designed and built with all the love in the world by @mdo and @fat.\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.
clean: {
Expand Down

0 comments on commit 429e92f

Please sign in to comment.