Skip to content

Commit

Permalink
use _element on EventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Apr 5, 2021
1 parent 32d6efd commit 1fc3f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/scrollspy.js
Expand Up @@ -76,7 +76,7 @@ class ScrollSpy extends BaseComponent {
this._activeTarget = null
this._scrollHeight = 0

EventHandler.on(this._scrollElement, EVENT_SCROLL, () => this._process())
EventHandler.on(this._element, EVENT_SCROLL, () => this._process())

this.refresh()
this._process()
Expand Down Expand Up @@ -262,7 +262,7 @@ class ScrollSpy extends BaseComponent {
})
}

EventHandler.trigger(this._scrollElement, EVENT_ACTIVATE, {
EventHandler.trigger(this._element, EVENT_ACTIVATE, {
relatedTarget: target
})
}
Expand Down

0 comments on commit 1fc3f48

Please sign in to comment.