File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ export default function install (Vue, options) {
89
89
90
90
function initScrollSections ( el , sectionSelector ) {
91
91
const id = scrollSpyId ( el )
92
- const scrollSpyContext = el [ scrollSpyContext ]
92
+ const scrollSpyContextEl = el [ scrollSpyContext ]
93
93
const idScrollSections = findElements ( el , sectionSelector )
94
94
scrollSpySections [ id ] = idScrollSections
95
95
96
96
if ( idScrollSections [ 0 ] && idScrollSections [ 0 ] . offsetParent !== el ) {
97
- scrollSpyContext . eventEl = window
98
- scrollSpyContext . scrollEl = bodyScrollEl
97
+ scrollSpyContextEl . eventEl = window
98
+ scrollSpyContextEl . scrollEl = bodyScrollEl
99
99
}
100
100
}
101
101
@@ -205,9 +205,9 @@ export default function install (Vue, options) {
205
205
delete currentIndex [ id ]
206
206
} ,
207
207
inserted : function ( el ) {
208
- const { eventEl, onScroll, options : { sectionSelector} } = el [ scrollSpyContext ]
209
-
208
+ const { options : { sectionSelector} } = el [ scrollSpyContext ]
210
209
initScrollSections ( el , sectionSelector )
210
+ const { eventEl, onScroll} = el [ scrollSpyContext ]
211
211
eventEl . addEventListener ( 'scroll' , onScroll )
212
212
213
213
onScroll ( )
You can’t perform that action at this time.
0 commit comments