]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use .end() to remove extra line 14244/head
authorChris Hynes <chris@programcsharp.com>
Fri, 25 Jul 2014 18:10:46 +0000 (11:10 -0700)
committerChris Hynes <chris@programcsharp.com>
Fri, 25 Jul 2014 18:10:46 +0000 (11:10 -0700)
js/popover.js

index 130c6c085ad4fcfa3e77ac02a0c6e11b83dd4b28..87b8d12de6a89c9603bc86cbf226cc9ce9a6bcc2 100644 (file)
@@ -46,8 +46,7 @@
     var content = this.getContent()
 
     $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
-    $tip.find('.popover-content').children().detach()
-    $tip.find('.popover-content')[ // we use append for html objects to maintain js events
+    $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
       this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
     ](content)