From 519a087dbed55e3e350c5a7251ae3d76d195e47d Mon Sep 17 00:00:00 2001 From: Chris Hynes Date: Fri, 25 Jul 2014 10:16:44 -0700 Subject: [PATCH] Remove popover content with .children().detach() instead of .empty() so it can be reused --- js/popover.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/popover.js b/js/popover.js index 825e1b3908..130c6c085a 100644 --- a/js/popover.js +++ b/js/popover.js @@ -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) -- 2.47.2