]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
top stripping leading and trailing whitespace + always use .html method
authorJacob Thornton <jacobthornton@gmail.com>
Thu, 22 Mar 2012 04:35:02 +0000 (21:35 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Thu, 22 Mar 2012 04:35:02 +0000 (21:35 -0700)
docs/assets/bootstrap.zip
docs/assets/js/bootstrap-popover.js
docs/assets/js/bootstrap-tooltip.js
js/bootstrap-popover.js
js/bootstrap-tooltip.js

index b23cd19c97c6bb27c4f5eddcd364037cb2abf7d8..e6c6aab42ec4fa9cd1ad58290532855aea501f5b 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index e1aa5ac39157202481fff3df684e0df815a5a994..6f389785cc79fe951c22941ec3d3a7b0c7b6947f 100644 (file)
@@ -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
     }
 
index 49b5f7286a07331fb7b8faa3e2b483bd59f040fb..2b5f146b13b47fd91b17fc3befacb009f816e0cf 100644 (file)
       title = $e.attr('data-original-title')
         || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
 
-      title = (title || '').toString().replace(/(^\s*|\s*$)/, "")
-
       return title
     }
 
index e1aa5ac39157202481fff3df684e0df815a5a994..6f389785cc79fe951c22941ec3d3a7b0c7b6947f 100644 (file)
@@ -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
     }
 
index 49b5f7286a07331fb7b8faa3e2b483bd59f040fb..2b5f146b13b47fd91b17fc3befacb009f816e0cf 100644 (file)
       title = $e.attr('data-original-title')
         || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
 
-      title = (title || '').toString().replace(/(^\s*|\s*$)/, "")
-
       return title
     }