diff options
| author | Chris Rebert <[email protected]> | 2015-03-03 13:32:24 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-03-03 22:22:13 -0800 |
| commit | 27bbc7dbe93799730112cb786a859331ca193130 (patch) | |
| tree | 5ef9b4e2c4c5b6d588e94939fcf56ba48362852b /js/tooltip.js | |
| parent | 2f17289ab6665620c52a4a69750294f892a42e81 (diff) | |
| download | bootstrap-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.js | 2 |
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]() }) |
