From: Chris Hynes Date: Fri, 25 Jul 2014 17:16:44 +0000 (-0700) Subject: Remove popover content with .children().detach() instead of .empty() so it can be... X-Git-Tag: v3.3.0~248^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=519a087dbed55e3e350c5a7251ae3d76d195e47d;p=thirdparty%2Fbootstrap.git Remove popover content with .children().detach() instead of .empty() so it can be reused --- 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)