diff options
author | Mike Jacobson <michaeljjacobson1@gmail.com> | 2017-10-02 01:26:37 +0300 |
---|---|---|
committer | Mark Otto <markd.otto@gmail.com> | 2017-10-03 04:55:22 +0300 |
commit | 1bde860c016b75ca0df7b684fa8a7e3ca07e18b6 (patch) | |
tree | 0a55fe81881a6f59afab2ce8ba8d8dac28462eeb /docs/4.0/components/scrollspy.md | |
parent | b2cadc233e2df038771849fd2afe60af07f93aa1 (diff) |
Clarify ScrollSpy 'activate' event element
Diffstat (limited to 'docs/4.0/components/scrollspy.md')
-rw-r--r-- | docs/4.0/components/scrollspy.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/4.0/components/scrollspy.md b/docs/4.0/components/scrollspy.md index 32a86d839f..b7f9e994fd 100644 --- a/docs/4.0/components/scrollspy.md +++ b/docs/4.0/components/scrollspy.md @@ -316,13 +316,13 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <tbody> <tr> <td>activate.bs.scrollspy</td> - <td>This event fires whenever a new item becomes activated by the scrollspy.</td> + <td>This event fires on the scroll element whenever a new item becomes activated by the scrollspy.</td> </tr> </tbody> </table> {% highlight js %} -$('#myScrollspy').on('activate.bs.scrollspy', function () { +$('[data-spy="scroll"]').on('activate.bs.scrollspy', function () { // do something… }) {% endhighlight %} |