mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 23:04:32 +02:00
Move from $.proxy to es6 arrow functions. (#21049)
This commit is contained in:
committed by
Mark Otto
parent
d6cc0e017d
commit
0974267b8c
@@ -87,7 +87,7 @@ const ScrollSpy = (($) => {
|
||||
this._activeTarget = null
|
||||
this._scrollHeight = 0
|
||||
|
||||
$(this._scrollElement).on(Event.SCROLL, $.proxy(this._process, this))
|
||||
$(this._scrollElement).on(Event.SCROLL, (event) => this._process(event))
|
||||
|
||||
this.refresh()
|
||||
this._process()
|
||||
|
Reference in New Issue
Block a user