From dff122f7f0733f653d6845f7338b55388cd982f9 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 12 Feb 2014 11:07:04 -0800 Subject: [PATCH] avoid using .bs-* in example, & improve style --- docs/javascript.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/javascript.html b/docs/javascript.html index 16cd66e65a..ddb233fd5f 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -2073,11 +2073,11 @@ $('#myCarousel').on('slide.bs.carousel', function () {

Via JavaScript

Call the affix plugin via JavaScript:

{% 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)) } } })