8000 if no callback, don't try to call callback ya goof · rusongyu/bootstrap@d8a7a38 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8a7a38

Browse files
committed
if no callback, don't try to call callback ya goof
1 parent 3b56227 commit d8a7a38

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

docs/assets/js/bootstrap-modal.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@
171171

172172
this.$backdrop.addClass('in')
173173

174+
if (!callback) return
175+
174176
doAnimate ?
175177
this.$backdrop.one($.support.transition.end, callback) :
176178
callback()

docs/assets/js/bootstrap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,8 @@
969969

970970
this.$backdrop.addClass('in')
971971

972+
if (!callback) return
973+
972974
doAnimate ?
973975
this.$backdrop.one($.support.transition.end, callback) :
974976
callback()

0 commit comments

Comments
 (0)
0