From 27bbc7dbe93799730112cb786a859331ca193130 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 3 Mar 2015 13:32:24 -0800 Subject: Hiding an uninitialized tooltip/popover no longer initializes it; fixes #15874 --- js/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/tooltip.js') diff --git a/js/tooltip.js b/js/tooltip.js index 6d7f6ccbe..624ade71c 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -453,7 +453,7 @@ var data = $this.data('bs.tooltip') var options = typeof option == 'object' && option - if (!data && option == 'destroy') return + if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) if (typeof option == 'string') data[option]() }) -- cgit v1.2.3