aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-button.js
diff options
context:
space:
mode:
authorCarl Porth <[email protected]>2012-09-26 23:11:03 -0700
committerCarl Porth <[email protected]>2012-09-26 23:11:03 -0700
commit474471b83140350de320f3ba940bd7dd8326b32e (patch)
treefe11a67690e6e84ce8e6a057b780af37ab341d87 /js/bootstrap-button.js
parent24e277b85abace0f77076b1cfa96e11b1d1dc891 (diff)
downloadbootstrap-474471b83140350de320f3ba940bd7dd8326b32e.tar.xz
bootstrap-474471b83140350de320f3ba940bd7dd8326b32e.zip
bind data-api events to document instead of body to allow body replacement
Diffstat (limited to 'js/bootstrap-button.js')
-rw-r--r--js/bootstrap-button.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js
index cc2d0048f..4c0b725c7 100644
--- a/js/bootstrap-button.js
+++ b/js/bootstrap-button.js
@@ -86,7 +86,7 @@
* =============== */
$(function () {
- $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
+ $(document).on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
var $btn = $(e.target)
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
$btn.button('toggle')