aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-06-30 16:46:33 +0300
committerXhmikosR <[email protected]>2020-07-12 15:52:25 +0300
commitb345746bb6d9ac4fe4f32ebd37b15fe52ec13ca0 (patch)
tree145388243c4a0a503d4493128a840f8493347617 /js
parent6d86b140f96049661675cfd83d219b4b82385e36 (diff)
downloadbootstrap-b345746bb6d9ac4fe4f32ebd37b15fe52ec13ca0.tar.xz
bootstrap-b345746bb6d9ac4fe4f32ebd37b15fe52ec13ca0.zip
Join template literals
Diffstat (limited to 'js')
-rw-r--r--js/src/scrollspy.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js
index 108b6f067..6c72ba3e2 100644
--- a/js/src/scrollspy.js
+++ b/js/src/scrollspy.js
@@ -70,9 +70,7 @@ class ScrollSpy {
this._element = element
this._scrollElement = element.tagName === 'BODY' ? window : element
this._config = this._getConfig(config)
- this._selector = `${this._config.target} ${SELECTOR_NAV_LINKS},` +
- `${this._config.target} ${SELECTOR_LIST_ITEMS},` +
- `${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`
+ this._selector = `${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`
this._offsets = []
this._targets = []
this._activeTarget = null