]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix #14224: Correctly document args passed to function vals for `title` & `content... 14256/head
authorChris Rebert <code@rebertia.com>
Sun, 27 Jul 2014 23:18:59 +0000 (16:18 -0700)
committerChris Rebert <code@rebertia.com>
Sun, 27 Jul 2014 23:18:59 +0000 (16:18 -0700)
docs/_includes/js/popovers.html
docs/_includes/js/tooltips.html

index 4ab7253b172da9997cb986fd8d7635c629b326ad..792ea21767bd216f4df0ef05591fd4551386c053 100644 (file)
@@ -163,7 +163,7 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
           <td>''</td>
           <td>
             <p>Default content value if <code>data-content</code> attribute isn't present.</p>
-            <p>If a function is given, it will be called with 1 argument, which is the element that the popover is attached to.</p>
+            <p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
           </td>
         </tr>
         <tr>
@@ -210,7 +210,10 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
           <td>title</td>
           <td>string | function</td>
           <td>''</td>
-          <td>Default title value if <code>title</code> attribute isn't present</td>
+          <td>
+            <p>Default title value if <code>title</code> attribute isn't present.</p>
+            <p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
+          </td>
         </tr>
         <tr>
           <td>trigger</td>
index 33743c4c2143bb1506f76284b04c2d4d342dc52e..9e6c0b8e0ec0a43b7f7e21207f0ce673cd3a3cf4 100644 (file)
@@ -141,7 +141,10 @@ $('#example').tooltip(options)
          <td>title</td>
          <td>string | function</td>
          <td>''</td>
-         <td>Default title value if <code>title</code> attribute isn't present</td>
+         <td>
+          <p>Default title value if <code>title</code> attribute isn't present.</p>
+          <p>If a function is given, it will be called with its <code>this</code> reference set to the element that the tooltip is attached to.</p>
+        </td>
        </tr>
        <tr>
          <td>trigger</td>