mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
scrollspy.js: remove temporary variable (#30724)
This commit is contained in:
parent
f3aed77dc7
commit
0f6cb9139f
@ -214,8 +214,7 @@ class ScrollSpy {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const offsetLength = this._offsets.length
|
for (let i = this._offsets.length; i--;) {
|
||||||
for (let i = offsetLength; i--;) {
|
|
||||||
const isActiveTarget = this._activeTarget !== this._targets[i] &&
|
const isActiveTarget = this._activeTarget !== this._targets[i] &&
|
||||||
scrollTop >= this._offsets[i] &&
|
scrollTop >= this._offsets[i] &&
|
||||||
(typeof this._offsets[i + 1] === 'undefined' ||
|
(typeof this._offsets[i + 1] === 'undefined' ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user