From 55facf1f2ed9606f17504ac92a4c3b17a9c5e20b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 21 Aug 2012 12:58:48 -0700 Subject: [PATCH] fixes #4473: docs example typo for js affix plugin --- docs/javascript.html | 2 +- docs/templates/pages/javascript.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/javascript.html b/docs/javascript.html index f6c8c428b0..3480f2b78b 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1606,7 +1606,7 @@ $('.carousel').carousel({

Via data attributes

To easily add affix behavior to any element, just add data-spy="affix" to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.

-
<div data-spy="affix" data-offset-top="200">...</body>
+
<div data-spy="affix" data-offset-top="200">...</div>
Heads up! diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index c9e1b612b0..a1230d83fd 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1536,7 +1536,7 @@ $('.carousel').carousel({

{{_i}}Via data attributes{{/i}}

{{_i}}To easily add affix behavior to any element, just add data-spy="affix" to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.{{/i}}

-
<div data-spy="affix" data-offset-top="200">...</body>
+
<div data-spy="affix" data-offset-top="200">...</div>
{{_i}}Heads up!{{/i}}