mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
scrollspy.js: remove unused properties
This commit is contained in:
parent
5ac1a12625
commit
dce47b5451
@ -55,13 +55,11 @@ const ClassName = {
|
|||||||
|
|
||||||
const Selector = {
|
const Selector = {
|
||||||
DATA_SPY: '[data-spy="scroll"]',
|
DATA_SPY: '[data-spy="scroll"]',
|
||||||
ACTIVE: '.active',
|
|
||||||
NAV_LIST_GROUP: '.nav, .list-group',
|
NAV_LIST_GROUP: '.nav, .list-group',
|
||||||
NAV_LINKS: '.nav-link',
|
NAV_LINKS: '.nav-link',
|
||||||
NAV_ITEMS: '.nav-item',
|
NAV_ITEMS: '.nav-item',
|
||||||
LIST_ITEMS: '.list-group-item',
|
LIST_ITEMS: '.list-group-item',
|
||||||
DROPDOWN: '.dropdown',
|
DROPDOWN: '.dropdown',
|
||||||
DROPDOWN_ITEMS: '.dropdown-item',
|
|
||||||
DROPDOWN_TOGGLE: '.dropdown-toggle'
|
DROPDOWN_TOGGLE: '.dropdown-toggle'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +81,7 @@ class ScrollSpy {
|
|||||||
this._config = this._getConfig(config)
|
this._config = this._getConfig(config)
|
||||||
this._selector = `${this._config.target} ${Selector.NAV_LINKS},` +
|
this._selector = `${this._config.target} ${Selector.NAV_LINKS},` +
|
||||||
`${this._config.target} ${Selector.LIST_ITEMS},` +
|
`${this._config.target} ${Selector.LIST_ITEMS},` +
|
||||||
`${this._config.target} ${Selector.DROPDOWN_ITEMS}`
|
`${this._config.target} .${ClassName.DROPDOWN_ITEM}`
|
||||||
this._offsets = []
|
this._offsets = []
|
||||||
this._targets = []
|
this._targets = []
|
||||||
this._activeTarget = null
|
this._activeTarget = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user