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 @@
}
, 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);
\ No newline at end of file
}(window.jQuery);
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