From f508d58cfc132d4ed09648fee35f80a30515e061 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 17 Sep 2011 18:28:21 -0700 Subject: [PATCH] update js with small typos --- 1.3.0/bootstrap.css | 2 +- javascript.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/1.3.0/bootstrap.css b/1.3.0/bootstrap.css index 8b6fe3eb..c2d2bbc7 100644 --- a/1.3.0/bootstrap.css +++ b/1.3.0/bootstrap.css @@ -1,5 +1,5 @@ /*! - * Bootstrap v1.2.0 + * Bootstrap v1.3.0 * * Copyright 2011 Twitter, Inc * Licensed under the Apache License v2.0 diff --git a/javascript.html b/javascript.html index cd05a723..ee2a569b 100644 --- a/javascript.html +++ b/javascript.html @@ -292,21 +292,21 @@ $('#my-modal').bind('hidden', function () {

Using boostrap-scrollspy.js

-
$('#topbar').dropdown()
+
$('#topbar').scrollSpy()

Markup

To easily add scrollspy behavior to your nav, just add the data-scrollspy attribute to the .topbar.

<div class="topbar" data-scrollspy="scrollspy" >...</div>

Methods

-

$().scrollspy()

+

$().scrollSpy()

Auto activates navigation buttons by users scroll position.

$('body > .topbar').scrollSpy()

Notice Topbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.

-

.scrollspy('refresh')

+

.scrollSpy('refresh')

The scrollspy caches nav buttons and section coordinates for performance. If you need to update this cache (likely if you have dynamic content) just call this refresh method. If you used the data attribute to define your scrollspy, just call refresh on the body.

-
$('body').scrollspy('refresh')
+
$('body').scrollSpy('refresh')

Demo

Checkout the the topbar navigation on this page.