aboutsummaryrefslogtreecommitdiff
path: root/js/tooltip.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-03-03 13:32:24 -0800
committerChris Rebert <[email protected]>2015-03-03 22:22:13 -0800
commit27bbc7dbe93799730112cb786a859331ca193130 (patch)
tree5ef9b4e2c4c5b6d588e94939fcf56ba48362852b /js/tooltip.js
parent2f17289ab6665620c52a4a69750294f892a42e81 (diff)
downloadbootstrap-27bbc7dbe93799730112cb786a859331ca193130.tar.xz
bootstrap-27bbc7dbe93799730112cb786a859331ca193130.zip
Hiding an uninitialized tooltip/popover no longer initializes it; fixes #15874
Diffstat (limited to 'js/tooltip.js')
-rw-r--r--js/tooltip.js2
1 files changed, 1 insertions, 1 deletions
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]()
})