diff options
| author | Johann-S <[email protected]> | 2019-02-26 14:48:27 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-11 17:01:28 +0200 |
| commit | dce47b5451c31acdfc2326da6c3a1fb2cb3248c0 (patch) | |
| tree | 5cefa08a2513ddc6643daa812f7c8512367019d4 /js/src | |
| parent | 5ac1a126257fed6a56d78693b88ced28d8dc5c2d (diff) | |
| download | bootstrap-dce47b5451c31acdfc2326da6c3a1fb2cb3248c0.tar.xz bootstrap-dce47b5451c31acdfc2326da6c3a1fb2cb3248c0.zip | |
scrollspy.js: remove unused properties
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/scrollspy.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 010af89bd..30e681eb1 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 |
