]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Join template literals
authorXhmikosR <xhmikosr@gmail.com>
Tue, 30 Jun 2020 13:46:33 +0000 (16:46 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 12 Jul 2020 12:52:25 +0000 (15:52 +0300)
js/src/scrollspy.js

index 108b6f067bfb53a92bd6eefa191160b0fe08660d..6c72ba3e254c391e394258885d3980336dec296a 100644 (file)
@@ -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