From 825227474b57c90181e9c1b43da952d01b6c1dc1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 25 Mar 2012 17:37:38 -0700 Subject: add refresh method documentation to js docs to close #2028 and #2795 --- docs/javascript.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 3cba210a1..70646afdb 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -571,6 +571,14 @@ $('#myModal').on('hidden', function () { Heads up! Navbar links 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>. +

Methods

+

.scrollspy('refresh')

+

When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:

+
+$('[data-spy="scroll"]').each(function () {
+  var $spy = $(this).scrollspy('refresh')
+});
+

Options

-- cgit v1.2.3