From 531fc80885bd7ed9ead85017fb2c258a3069d7f7 Mon Sep 17 00:00:00 2001 From: Chris Hynes Date: Fri, 25 Jul 2014 11:10:46 -0700 Subject: [PATCH] Use .end() to remove extra line --- js/popover.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/popover.js b/js/popover.js index 130c6c085a..87b8d12de6 100644 --- a/js/popover.js +++ b/js/popover.js @@ -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)