1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

fix carousel event

This commit is contained in:
Jacob Thornton
2012-10-17 22:26:44 -07:00
parent 8e6697f2b2
commit edc3eee5ea
5 changed files with 29 additions and 17 deletions

View File

@@ -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 () {