diff options
author | fat-kun <Jacobthornton@gmail.com> | 2012-12-23 02:53:24 +0400 |
---|---|---|
committer | fat-kun <Jacobthornton@gmail.com> | 2012-12-23 02:53:24 +0400 |
commit | d09b46fe378819e80ac75ffc7118fed11ca8da03 (patch) | |
tree | ffb016026af24adccea95f3eb0600f91d31f99e5 /js/bootstrap-tooltip.js | |
parent | effba9e55c9598985a6be6acd6711ceb9daf2fb1 (diff) | |
parent | a6705246d048ade327c5f93b4cc610ffbba86ee6 (diff) |
Merge pull request #6349 from Yohn/patch-6
Fixes #5753 with tooltip('toogle')
Diffstat (limited to 'js/bootstrap-tooltip.js')
-rw-r--r-- | js/bootstrap-tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index adcff70173..d908b0cf81 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -242,8 +242,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 () { @@ -290,4 +290,4 @@ return this } -}(window.jQuery);
\ No newline at end of file +}(window.jQuery); |