]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
scrollspy.js: remove unused properties
authorJohann-S <johann.servoire@gmail.com>
Tue, 26 Feb 2019 13:48:27 +0000 (14:48 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 11 Mar 2019 15:01:28 +0000 (17:01 +0200)
js/src/scrollspy.js

index 010af89bd86c3c98fb4ed38902c9af61685e1261..30e681eb1c838075971e86f2f60fc7a2abe331a7 100644 (file)
@@ -55,13 +55,11 @@ const ClassName = {
 
 const Selector = {
   DATA_SPY: '[data-spy="scroll"]',
-  ACTIVE: '.active',
   NAV_LIST_GROUP: '.nav, .list-group',
   NAV_LINKS: '.nav-link',
   NAV_ITEMS: '.nav-item',
   LIST_ITEMS: '.list-group-item',
   DROPDOWN: '.dropdown',
-  DROPDOWN_ITEMS: '.dropdown-item',
   DROPDOWN_TOGGLE: '.dropdown-toggle'
 }
 
@@ -83,7 +81,7 @@ class ScrollSpy {
     this._config = this._getConfig(config)
     this._selector = `${this._config.target} ${Selector.NAV_LINKS},` +
                           `${this._config.target} ${Selector.LIST_ITEMS},` +
-                          `${this._config.target} ${Selector.DROPDOWN_ITEMS}`
+                          `${this._config.target} .${ClassName.DROPDOWN_ITEM}`
     this._offsets = []
     this._targets = []
     this._activeTarget = null