]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove popover content with .children().detach() instead of .empty() so it can be...
authorChris Hynes <chris@programcsharp.com>
Fri, 25 Jul 2014 17:16:44 +0000 (10:16 -0700)
committerChris Hynes <chris@programcsharp.com>
Fri, 25 Jul 2014 17:16:44 +0000 (10:16 -0700)
js/popover.js

index 825e1b390892162fa6a9011001eac17e3164855b..130c6c085ad4fcfa3e77ac02a0c6e11b83dd4b28 100644 (file)
@@ -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)