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/popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/popover.js') diff --git a/js/popover.js b/js/popover.js index 09be24433..479d059c5 100644 --- a/js/popover.js +++ b/js/popover.js @@ -85,7 +85,7 @@ var data = $this.data('bs.popover') var options = typeof option == 'object' && option - if (!data && option == 'destroy') return + if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.popover', (data = new Popover(this, options))) if (typeof option == 'string') data[option]() }) -- cgit v1.2.3