1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-24 20:41:33 +02:00
This commit is contained in:
fat
2013-08-17 14:24:38 -07:00
parent 728a5e17d6
commit 712b89ed4e
2 changed files with 22 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
var Modal = function (element, options) {
this.options = options
this.$element = $(element).on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
this.$element = $(element)
this.$backdrop =
this.isShown = null
@@ -54,6 +54,8 @@
this.escape()
this.$element.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
this.backdrop(function () {
var transition = $.support.transition && that.$element.hasClass('fade')