diff options
| author | Yohn <[email protected]> | 2012-12-20 04:34:28 -0500 |
|---|---|---|
| committer | Yohn <[email protected]> | 2012-12-20 04:34:28 -0500 |
| commit | e21b6459ad162296f94b2d9aeaf8807a153d3c8a (patch) | |
| tree | c0d9f0f67a4008e78f5cd6ed3b497e4e92c0b433 | |
| parent | 3f493f0d0d81d21c3d6aa6ffac7e881ca00654e6 (diff) | |
| download | bootstrap-e21b6459ad162296f94b2d9aeaf8807a153d3c8a.tar.xz bootstrap-e21b6459ad162296f94b2d9aeaf8807a153d3c8a.zip | |
fixes tooltip('toggle')
| -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 25bba1589..221d3ef7b 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -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); |
