diff options
| author | Jacob <[email protected]> | 2014-08-18 20:06:02 -0700 |
|---|---|---|
| committer | Jacob <[email protected]> | 2014-08-18 20:06:02 -0700 |
| commit | c95aa97c03fc676f7b53d002c7c8a3bb59fd6747 (patch) | |
| tree | 3202aedc706169f36f8be2933240ad6b904834f1 | |
| parent | ea0e1606dc8f6a351c850a3e51889872c0f07c31 (diff) | |
| parent | 531fc80885bd7ed9ead85017fb2c258a3069d7f7 (diff) | |
| download | bootstrap-c95aa97c03fc676f7b53d002c7c8a3bb59fd6747.tar.xz bootstrap-c95aa97c03fc676f7b53d002c7c8a3bb59fd6747.zip | |
Merge pull request #14244 from programcsharp/master
Remove popover content with .children().detach() instead of .empty()
| -rw-r--r-- | js/popover.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/popover.js b/js/popover.js index 825e1b390..87b8d12de 100644 --- a/js/popover.js +++ b/js/popover.js @@ -46,7 +46,7 @@ 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().end()[ // we use append for html objects to maintain js events this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text' ](content) |
