2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +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
@@ -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]()
})