Skip to content

Commit

Permalink
re-integrate #8560 using @fat's code from the comment on #8614
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Jul 26, 2013
1 parent 292d8d6 commit a317f67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ module.exports = function(grunt) {
'* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
'* <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
'*/\n',
jqueryCheck: 'if (!jQuery) { throw new Error(\"Bootstrap requires jQuery\") }\n\n',
// Task configuration.
clean: {
dist: ['dist']
},
concat: {
options: {
banner: '<%= banner %>',
banner: '<%= banner %><%= jqueryCheck %>',
stripBanners: false
},
bootstrap: {
Expand Down
2 changes: 2 additions & 0 deletions dist/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright 2013 Twitter Inc.
* http://www.apache.org/licenses/LICENSE-2.0
*/
if (!jQuery) { throw new Error("Bootstrap requires jQuery") }

/* ========================================================================
* Bootstrap: transition.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#transitions
Expand Down
Loading

0 comments on commit a317f67

Please sign in to comment.