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>2012-02-08 09:55:27 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-02-08 09:55:27 +0400
commit139a07754303e1e53b34a0fca3b9c0a43ee5712b (patch)
treeae12a4522c92f8cbd36320300cab42bc31a2ad73
parent11f72f6aa22c9d2daa9a95846e6c786afd7bc3e1 (diff)
don't use e.target incase button has icon or other content inside it
-rw-r--r--docs/assets/bootstrap.zipbin52562 -> 52560 bytes
-rw-r--r--docs/assets/js/bootstrap-button.js2
-rw-r--r--js/bootstrap-button.js2
3 files changed, 2 insertions, 2 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 5f7a919dea..90fa63336a 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files 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')
})
})