From: Jacob Thornton Date: Wed, 8 Feb 2012 05:55:27 +0000 (-0800) Subject: don't use e.target incase button has icon or other content inside it X-Git-Tag: v2.0.1~1^2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=139a07754303e1e53b34a0fca3b9c0a43ee5712b;p=thirdparty%2Fbootstrap.git don't use e.target incase button has icon or other content inside it --- diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 5f7a919dea..90fa63336a 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/js/bootstrap-button.js b/docs/assets/js/bootstrap-button.js index d85c82947a..a3f4657e8d 100644 --- a/docs/assets/js/bootstrap-button.js +++ b/docs/assets/js/bootstrap-button.js @@ -91,7 +91,7 @@ $(function () { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { - $(e.target).button('toggle') + $(e.currentTarget).button('toggle') }) }) diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js index d85c82947a..a3f4657e8d 100644 --- a/js/bootstrap-button.js +++ b/js/bootstrap-button.js @@ -91,7 +91,7 @@ $(function () { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { - $(e.target).button('toggle') + $(e.currentTarget).button('toggle') }) })