From 701c6c6e77950ca2df6e4e89bdea8732983c1cdd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 2 Dec 2020 06:45:15 +0200 Subject: Unbreak lines. (#32304) --- js/src/scrollspy.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'js/src/scrollspy.js') diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index e3e5e76b9..a05e57d62 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -196,9 +196,7 @@ class ScrollSpy extends BaseComponent { _process() { const scrollTop = this._getScrollTop() + this._config.offset const scrollHeight = this._getScrollHeight() - const maxScroll = this._config.offset + - scrollHeight - - this._getOffsetHeight() + const maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight() if (this._scrollHeight !== scrollHeight) { this.refresh() @@ -223,8 +221,7 @@ class ScrollSpy extends BaseComponent { for (let i = this._offsets.length; i--;) { const isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && - (typeof this._offsets[i + 1] === 'undefined' || - scrollTop < this._offsets[i + 1]) + (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]) if (isActiveTarget) { this._activate(this._targets[i]) -- cgit v1.2.3