Commit e21b6459 authored by Yohn's avatar Yohn
Browse files

fixes tooltip('toggle')

parent 3f493f0d
Showing with 3 additions and 3 deletions
+3 -3
...@@ -234,8 +234,8 @@ ...@@ -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 @@ ...@@ -282,4 +282,4 @@
return this return this
} }
}(window.jQuery); }(window.jQuery);
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment