Skip to content

Commit

Permalink
if no callback, don't try to call callback ya goof
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Feb 8, 2013
1 parent 3b56227 commit d8a7a38
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/assets/js/bootstrap-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@

this.$backdrop.addClass('in')

if (!callback) return

doAnimate ?
this.$backdrop.one($.support.transition.end, callback) :
callback()
Expand Down
2 changes: 2 additions & 0 deletions docs/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,8 @@

this.$backdrop.addClass('in')

if (!callback) return

doAnimate ?
this.$backdrop.one($.support.transition.end, callback) :
callback()
Expand Down
Loading

0 comments on commit d8a7a38

Please sign in to comment.