aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-02-12 11:07:04 -0800
committerChris Rebert <[email protected]>2014-02-12 11:07:04 -0800
commitdff122f7f0733f653d6845f7338b55388cd982f9 (patch)
treed35c1ba7238de49a98a0d4e50fa0c0e99437a12f /docs/javascript.html
parent40142bdc5197b69f26e4d8ea3e30cd4fcf0d7cdb (diff)
downloadbootstrap-dff122f7f0733f653d6845f7338b55388cd982f9.tar.xz
bootstrap-dff122f7f0733f653d6845f7338b55388cd982f9.zip
avoid using .bs-* in example, & improve style
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index 16cd66e65..ddb233fd5 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -2073,11 +2073,11 @@ $('#myCarousel').on('slide.bs.carousel', function () {
<h3>Via JavaScript</h3>
<p>Call the affix plugin via JavaScript:</p>
{% highlight js %}
- $('#myAffix').affix({
+ $('#my-affix').affix({
offset: {
top: 100
, bottom: function () {
- return (this.bottom = $('.bs-footer').outerHeight(true))
+ return (this.bottom = $('.footer').outerHeight(true))
}
}
})