From: Dean Taylor Date: Sun, 29 Sep 2013 20:14:24 +0000 (+0100) Subject: Update Gruntfile.js fixing undefined jQuery check X-Git-Tag: v3.0.1~39^2~117^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429e92fd58491acc09e6695e4fb4cf9c39420c44;p=thirdparty%2Fbootstrap.git 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`. --- diff --git a/Gruntfile.js b/Gruntfile.js index b7b780f9eb..f1ae2266f5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: {