0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

update tool/pop destroy placement

This commit is contained in:
fat 2013-12-26 18:27:43 -08:00
parent 6baf266cda
commit 3c73904e17
2 changed files with 2 additions and 2 deletions

View File

@ -85,9 +85,9 @@
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.popover')
if (!data && option === 'destroy') return
var options = typeof option == 'object' && option
if (!data && option == 'destroy') return
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
if (typeof option == 'string') data[option]()
})

View File

@ -376,9 +376,9 @@
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.tooltip')
if (!data && option === 'destroy') return
var options = typeof option == 'object' && option
if (!data && option == 'destroy') return
if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
if (typeof option == 'string') data[option]()
})