Skip to content

Commit 2a141c2

Browse files
committed
Readme: Add note about setting options after init
1 parent 037a27b commit 2a141c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ The options object for `$.fn.smoothScroll` can take two additional properties:
5353
selectors, DOM elements or jQuery objects. Default value for both is an
5454
empty array.
5555

56+
#### Setting options after initial call
57+
58+
If you need to change any of the options after you've already called `.smoothScroll()`,
59+
you can do so by passing the `"options"` string as the first argument and an
60+
options object as the second.
5661

5762
### $.smoothScroll
5863

@@ -84,7 +89,7 @@ for `$.smoothScroll`:
8489
{
8590
// jQuery set of elements you wish to scroll.
8691
// if null (default), $('html, body').firstScrollable() is used.
87-
scrollElement: null,
92+
scrollElement: null
8893
}
8994
```
9095

0 commit comments

Comments
 (0)