]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Scrollspy - Remove unnecessary event argument (#32603)
authorRohit Sharma <rohit2sharma95@gmail.com>
Thu, 7 Jan 2021 07:34:08 +0000 (13:04 +0530)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 07:34:08 +0000 (09:34 +0200)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/scrollspy.js

index a8770ef085b444d0e204c92ad57f2ae3309ea0ec..baea494439631e29e67503ac2ab1433cfc2a72ac 100644 (file)
@@ -76,7 +76,7 @@ class ScrollSpy extends BaseComponent {
     this._activeTarget = null
     this._scrollHeight = 0
 
-    EventHandler.on(this._scrollElement, EVENT_SCROLL, event => this._process(event))
+    EventHandler.on(this._scrollElement, EVENT_SCROLL, () => this._process())
 
     this.refresh()
     this._process()