Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2019-02-26 16:48:27 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-03-11 18:01:28 +0300
commitdce47b5451c31acdfc2326da6c3a1fb2cb3248c0 (patch)
tree5cefa08a2513ddc6643daa812f7c8512367019d4 /js/src/scrollspy.js
parent5ac1a126257fed6a56d78693b88ced28d8dc5c2d (diff)
scrollspy.js: remove unused properties
Diffstat (limited to 'js/src/scrollspy.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 010af89bd8..30e681eb1c 100644
--- a/js/src/scrollspy.js
+++ b/js/src/scrollspy.js
@@ -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