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
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2011-12-21 07:37:41 +0400
committerJacob Thornton <jacobthornton@gmail.com>2011-12-21 07:37:41 +0400
commit0980a33b4703677e1aaf3cd949c0437512fa6f33 (patch)
treee7d2b1ac80580699d50c85c747d195d47be40ed6 /js/bootstrap-modal.js
parent1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 (diff)
update all to new on api + add animation support to tabs
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 38f4f51a29..f2624ec1c1 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -96,7 +96,7 @@
function hideWithTransition() {
var that = this
, timeout = setTimeout(function () {
- that.$element.unbind($.support.transition.end)
+ that.$element.off($.support.transition.end)
hideModal.call(that)
}, 500)
@@ -156,11 +156,11 @@
function escape() {
var that = this
if (this.isShown && this.options.keyboard) {
- $(document).bind('keyup.dismiss.modal', function ( e ) {
+ $(document).on('keyup.dismiss.modal', function ( e ) {
e.which == 27 && that.hide()
})
} else if (!this.isShown) {
- $(document).unbind('keyup.dismiss.modal')
+ $(document).off('keyup.dismiss.modal')
}
}