From: Mike Jacobson Date: Sun, 1 Oct 2017 22:26:37 +0000 (-0700) Subject: Clarify ScrollSpy 'activate' event element X-Git-Tag: v4.0.0-beta.2~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bde860c016b75ca0df7b684fa8a7e3ca07e18b6;p=thirdparty%2Fbootstrap.git Clarify ScrollSpy 'activate' event element --- 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 activate.bs.scrollspy - This event fires whenever a new item becomes activated by the scrollspy. + This event fires on the scroll element whenever a new item becomes activated by the scrollspy. {% highlight js %} -$('#myScrollspy').on('activate.bs.scrollspy', function () { +$('[data-spy="scroll"]').on('activate.bs.scrollspy', function () { // do something… }) {% endhighlight %}