aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap-tooltip.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-10-17 22:26:44 -0700
committerJacob Thornton <[email protected]>2012-10-17 22:26:44 -0700
commitedc3eee5eaae52384de1486639585c0b41318cf8 (patch)
tree7c82af98402716dbbdd70d6ff2ff7a16648726b1 /docs/assets/js/bootstrap-tooltip.js
parent8e6697f2b20da705377d2a7a2eb6957a4df59d77 (diff)
downloadbootstrap-edc3eee5eaae52384de1486639585c0b41318cf8.tar.xz
bootstrap-edc3eee5eaae52384de1486639585c0b41318cf8.zip
fix carousel event
Diffstat (limited to 'docs/assets/js/bootstrap-tooltip.js')
-rw-r--r--docs/assets/js/bootstrap-tooltip.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap-tooltip.js b/docs/assets/js/bootstrap-tooltip.js
index 14e48c856..d5c2def29 100644
--- a/docs/assets/js/bootstrap-tooltip.js
+++ b/docs/assets/js/bootstrap-tooltip.js
@@ -235,8 +235,9 @@
this.enabled = !this.enabled
}
- , toggle: function () {
- this[this.tip().hasClass('in') ? 'hide' : 'show']()
+ , toggle: function (e) {
+ var self = $(e.currentTarget)[this.type](this._options).data(this.type)
+ self[self.tip().hasClass('in') ? 'hide' : 'show']()
}
, destroy: function () {