Commit 519a087d authored by Chris Hynes's avatar Chris Hynes
Browse files

Remove popover content with .children().detach() instead of .empty() so it can be reused

parent f023ddc6
5 merge requests!28721Hot test,!14244Remove popover content with .children().detach() instead of .empty(),!16605Test pull please ignore,!22103test,!25326Adjust examples
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment