From 139a07754303e1e53b34a0fca3b9c0a43ee5712b Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 7 Feb 2012 21:55:27 -0800 Subject: don't use e.target incase button has icon or other content inside it --- js/bootstrap-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/bootstrap-button.js') diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js index d85c82947..a3f4657e8 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') }) }) -- cgit v1.2.3 From 6e77c9d1233c1621deeaa2dd00e6eca3fd618610 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 13 Feb 2012 18:41:02 -0800 Subject: add semicolons to the end of js files --- js/bootstrap-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/bootstrap-button.js') diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js index a3f4657e8..89101ed7b 100644 --- a/js/bootstrap-button.js +++ b/js/bootstrap-button.js @@ -95,4 +95,4 @@ }) }) -}( window.jQuery ) +}( window.jQuery ); \ No newline at end of file -- cgit v1.2.3