diff options
| author | frntz <[email protected]> | 2012-10-02 18:26:55 +0300 |
|---|---|---|
| committer | frntz <[email protected]> | 2012-10-02 18:26:55 +0300 |
| commit | b892a373208fd17eb7b0123147715d3bf0a5b2ca (patch) | |
| tree | 90c7ad78a3190b9d9604d4084a643d95260e77d4 /js | |
| parent | 7c9597f4e76d45571fab7a0e19d90b2fea8aab02 (diff) | |
| download | bootstrap-b892a373208fd17eb7b0123147715d3bf0a5b2ca.tar.xz bootstrap-b892a373208fd17eb7b0123147715d3bf0a5b2ca.zip | |
Update js/bootstrap-tooltip.js
Avoid loosing events attached on Jquery object if added via function in popover content
Diffstat (limited to 'js')
| -rw-r--r-- | js/bootstrap-tooltip.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index 14e48c856..f0b88b5a3 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -119,7 +119,7 @@ inside = /in/.test(placement) $tip - .remove() + .detach() .css({ top: 0, left: 0, display: 'block' }) .insertAfter(this.$element) @@ -166,18 +166,18 @@ function removeWithAnimation() { var timeout = setTimeout(function () { - $tip.off($.support.transition.end).remove() + $tip.off($.support.transition.end).detach() }, 500) $tip.one($.support.transition.end, function () { clearTimeout(timeout) - $tip.remove() + $tip.detach() }) } $.support.transition && this.$tip.hasClass('fade') ? removeWithAnimation() : - $tip.remove() + $tip.detach() return this } |
