diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index f1239927e5..e2911bc660 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/javascript.html b/docs/javascript.html index 3cba210a1c..70646afdbb 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

diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index e037dd0243..a5010f2262 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -494,6 +494,14 @@ $('#myModal').on('hidden', function () { {{_i}}Heads up!{{/i}} {{_i}}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>.{{/i}} +

{{_i}}Methods{{/i}}

+

.scrollspy('refresh')

+

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

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

{{_i}}Options{{/i}}