aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-12-26 13:59:01 -0600
committerMark Otto <[email protected]>2012-12-26 13:59:01 -0600
commit9921d219693a1b01f7c9275babbef3f9d0afd3be (patch)
treeff8c52be6130e3da8630479f3306fd4e497887e9 /docs
parentb19fd8e4fa09afb7204cf4395ccbf86f5d11cf47 (diff)
downloadbootstrap-9921d219693a1b01f7c9275babbef3f9d0afd3be.tar.xz
bootstrap-9921d219693a1b01f7c9275babbef3f9d0afd3be.zip
Run make on previous commits
Diffstat (limited to 'docs')
-rw-r--r--docs/javascript.html10
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index fe7f750c0..2d01af561 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -571,12 +571,12 @@ $('#myModal').on('hidden', function () {
<h2>Usage</h2>
<h3>Via data attributes</h3>
- <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll need to use scrollspy with a <code>.nav</code> component.</p>
+ <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.</p>
<pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>
<h3>Via JavaScript</h3>
<p>Call the scrollspy via JavaScript:</p>
- <pre class="prettyprint linenums">$('body').scrollspy(options)</pre>
+ <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
<div class="alert alert-info">
<strong>Heads up!</strong>
@@ -605,12 +605,6 @@ $('[data-spy="scroll"]').each(function () {
</thead>
<tbody>
<tr>
- <td>target</td>
- <td>selector</td>
- <td>'body'</td>
- <td>Nav target to be updated on scroll. (Scrollspy looks for <code>.nav li > a</code> inside this target.)</td>
- </tr>
- <tr>
<td>offset</td>
<td>number</td>
<td>10</td>