aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Hynes <[email protected]>2014-07-25 11:10:46 -0700
committerChris Hynes <[email protected]>2014-07-25 11:10:46 -0700
commit531fc80885bd7ed9ead85017fb2c258a3069d7f7 (patch)
treebf0eac96ca957ac6dacf71033187063bd16d3b90
parent519a087dbed55e3e350c5a7251ae3d76d195e47d (diff)
downloadbootstrap-531fc80885bd7ed9ead85017fb2c258a3069d7f7.tar.xz
bootstrap-531fc80885bd7ed9ead85017fb2c258a3069d7f7.zip
Use .end() to remove extra line
-rw-r--r--js/popover.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/popover.js b/js/popover.js
index 130c6c085..87b8d12de 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)