]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update Gruntfile.js fixing undefined jQuery check 10863/head
authorDean Taylor <deanmarktaylor@gmail.com>
Sun, 29 Sep 2013 20:14:24 +0000 (21:14 +0100)
committerDean Taylor <deanmarktaylor@gmail.com>
Sun, 29 Sep 2013 20:14:24 +0000 (21:14 +0100)
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`.

Gruntfile.js

index b7b780f9eb3d634dd892131089b6c2deefc34010..f1ae2266f59b1f434a09af8eac086880f97b76ab 100644 (file)
@@ -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: {