diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2011-12-21 07:37:41 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2011-12-21 07:37:41 +0400 |
commit | 0980a33b4703677e1aaf3cd949c0437512fa6f33 (patch) | |
tree | e7d2b1ac80580699d50c85c747d195d47be40ed6 /js/bootstrap-modal.js | |
parent | 1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 (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.js | 6 |
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') } } |