mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-19 03:40:59 +00:00
Remove popover content with .children().detach() instead of .empty() so it can be reused
This commit is contained in:
parent
f023ddc64e
commit
519a087dbe
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@
|
|||
var content = this.getContent()
|
||||
|
||||
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
|
||||
$tip.find('.popover-content').empty()[ // we use append for html objects to maintain js events
|
||||
$tip.find('.popover-content').children().detach()
|
||||
$tip.find('.popover-content')[ // we use append for html objects to maintain js events
|
||||
this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
|
||||
](content)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue