Skip to content

Commit

Permalink
remove space
Browse files Browse the repository at this point in the history
  • Loading branch information
ibufu authored Apr 16, 2018
1 parent 4a54abe commit ef91020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ export default function install (Vue, options) {
},
inserted: function (el) {
const {eventEl, onScroll, options: {sectionSelector}} = el[scrollSpyContext]

initScrollSections(el, sectionSelector)
eventEl.addEventListener('scroll', onScroll)

onScroll()
},
componentUpdated: function (el) {
const {onScroll, options: {sectionSelector}} = el[scrollSpyContext]

initScrollSections(el, sectionSelector)
onScroll()
},
Expand Down

0 comments on commit ef91020

Please sign in to comment.