mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-18 19:30:59 +00:00
update tool/pop destroy placement
This commit is contained in:
parent
6baf266cda
commit
3c73904e17
2 changed files with 2 additions and 2 deletions
|
|
@ -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]()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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]()
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue