diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-12-02 07:45:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 07:45:15 +0300 |
commit | 701c6c6e77950ca2df6e4e89bdea8732983c1cdd (patch) | |
tree | d7f162d0eb4096ec4313d4f7beefc2cc39325cc3 /js/src/scrollspy.js | |
parent | f05d64225da06a4f1a3494fa8bd0fe44046b0e8a (diff) |
Unbreak lines. (#32304)
Diffstat (limited to 'js/src/scrollspy.js')
-rw-r--r-- | js/src/scrollspy.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index e3e5e76b97..a05e57d623 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]) |