From c19aee54729b4123bc4be200a17b08b91ea891c7 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 3 Dec 2014 17:02:41 -0800 Subject: [PATCH] Carry over remaining tooltip disposal code from space-pen extensions Signed-off-by: Max Brunsfeld Signed-off-by: Nathan Sobo --- src/tooltip-manager.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tooltip-manager.coffee b/src/tooltip-manager.coffee index 168e7f244..afde69db9 100644 --- a/src/tooltip-manager.coffee +++ b/src/tooltip-manager.coffee @@ -85,7 +85,11 @@ class TooltipManager $target = $(target) $target.tooltip(_.defaults(options, @defaults)) - new Disposable -> $target.tooltip('destroy') + new Disposable -> + tooltip = $target.data('bs.tooltip') + tooltip.leave(currentTarget: target) + tooltip.hide() + $target.tooltip('destroy') humanizeKeystrokes = (keystroke) -> keystrokes = keystroke.split(' ')