2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Hiding an uninitialized tooltip/popover no longer initializes it; fixes #15874

This commit is contained in:
Chris Rebert
2015-03-03 13:32:24 -08:00
parent 2f17289ab6
commit 27bbc7dbe9
4 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -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]()
})