mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 07:06:36 +02:00
fixes tooltip('toggle')
This commit is contained in:
6
js/bootstrap-tooltip.js
vendored
6
js/bootstrap-tooltip.js
vendored
@@ -234,8 +234,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, toggle: function (e) {
|
, toggle: function (e) {
|
||||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this
|
||||||
self[self.tip().hasClass('in') ? 'hide' : 'show']()
|
self.tip().hasClass('in') ? self.hide() : self.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
, destroy: function () {
|
, destroy: function () {
|
||||||
@@ -282,4 +282,4 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
}(window.jQuery);
|
}(window.jQuery);
|
||||||
|
Reference in New Issue
Block a user