diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-03-22 08:35:02 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-03-22 08:35:02 +0400 |
commit | d5fb653914617d63739142f6ecef00afd4d3c796 (patch) | |
tree | c6b0e82ad1b0a7245882a81e7e7387406dfd6f49 /docs/assets/js/bootstrap-popover.js | |
parent | 663e41d74f6369812da29a1dd66b0b1fcfd22827 (diff) |
top stripping leading and trailing whitespace + always use .html method
Diffstat (limited to 'docs/assets/js/bootstrap-popover.js')
-rw-r--r-- | docs/assets/js/bootstrap-popover.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/assets/js/bootstrap-popover.js b/docs/assets/js/bootstrap-popover.js index e1aa5ac391..6f389785cc 100644 --- a/docs/assets/js/bootstrap-popover.js +++ b/docs/assets/js/bootstrap-popover.js @@ -38,8 +38,8 @@ , title = this.getTitle() , content = this.getContent() - $tip.find('.popover-title')[ $.type(title) == 'object' ? 'append' : 'html' ](title) - $tip.find('.popover-content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content) + $tip.find('.popover-title').html(title) + $tip.find('.popover-content > *').html(content) $tip.removeClass('fade top bottom left right in') } @@ -56,8 +56,6 @@ content = $e.attr('data-content') || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) - content = content.toString().replace(/(^\s*|\s*$)/, "") - return content } |