Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2013-02-08 07:45:42 +0400
committerfat <jacobthornton@gmail.com>2013-02-08 07:45:42 +0400
commitd8a7a380bcfd25c66ca1dc54d1619dc272f4bbb4 (patch)
tree1d7fe367d66891ea71a832717d62fbc8d8b4add8 /js
parent3b56227553f40cc567e161c68c64f1e315fd5241 (diff)
if no callback, don't try to call callback ya goof
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-modal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 3596c8d4c2..379da60879 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -171,6 +171,8 @@
this.$backdrop.addClass('in')
+ if (!callback) return
+
doAnimate ?
this.$backdrop.one($.support.transition.end, callback) :
callback()