File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1578,7 +1578,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
1578
1578
1579
1579
this . $element = $ ( element ) . is ( 'body' ) ? $ ( window ) : $ ( element )
1580
1580
this . $body = $ ( 'body' )
1581
- this . $scrollElement = this . $element . on ( 'scroll.bs.scroll-spy.data-api ' , process )
1581
+ this . $scrollElement = this . $element . on ( 'scroll.bs.scrollspy ' , process )
1582
1582
this . options = $ . extend ( { } , ScrollSpy . DEFAULTS , options )
1583
1583
this . selector = ( this . options . target
1584
1584
|| ( ( href = $ ( element ) . attr ( 'href' ) ) && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) //strip for ie7
@@ -1702,7 +1702,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
1702
1702
// SCROLLSPY DATA-API
1703
1703
// ==================
1704
1704
1705
- $ ( window ) . on ( 'load' , function ( ) {
1705
+ $ ( window ) . on ( 'load.bs.scrollspy.data-api ' , function ( ) {
1706
1706
$ ( '[data-spy="scroll"]' ) . each ( function ( ) {
1707
1707
var $spy = $ ( this )
1708
1708
$spy . scrollspy ( $spy . data ( ) )
Original file line number Diff line number Diff line change 19
19
20
20
this . $element = $ ( element ) . is ( 'body' ) ? $ ( window ) : $ ( element )
21
21
this . $body = $ ( 'body' )
22
- this . $scrollElement = this . $element . on ( 'scroll.bs.scroll-spy.data-api ' , process )
22
+ this . $scrollElement = this . $element . on ( 'scroll.bs.scrollspy ' , process )
23
23
this . options = $ . extend ( { } , ScrollSpy . DEFAULTS , options )
24
24
this . selector = ( this . options . target
25
25
|| ( ( href = $ ( element ) . attr ( 'href' ) ) && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) //strip for ie7
143
143
// SCROLLSPY DATA-API
144
144
// ==================
145
145
146
- $ ( window ) . on ( 'load' , function ( ) {
146
+ $ ( window ) . on ( 'load.bs.scrollspy.data-api ' , function ( ) {
147
147
$ ( '[data-spy="scroll"]' ) . each ( function ( ) {
148
148
var $spy = $ ( this )
149
149
$spy . scrollspy ( $spy . data ( ) )
You can’t perform that action at this time.
0 commit comments