mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes tooltip('toggle')
This commit is contained in:
parent
3f493f0d0d
commit
e21b6459ad
1 changed files with 3 additions and 3 deletions
6
js/bootstrap-tooltip.js
vendored
6
js/bootstrap-tooltip.js
vendored
|
@ -234,8 +234,8 @@
|
|||
}
|
||||
|
||||
, toggle: function (e) {
|
||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
||||
self[self.tip().hasClass('in') ? 'hide' : 'show']()
|
||||
var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this
|
||||
self.tip().hasClass('in') ? self.hide() : self.show()
|
||||
}
|
||||
|
||||
, destroy: function () {
|
||||
|
@ -282,4 +282,4 @@
|
|||
return this
|
||||
}
|
||||
|
||||
}(window.jQuery);
|
||||
}(window.jQuery);
|
||||
|
|
Loading…
Reference in a new issue