From: Johann-S Date: Tue, 26 Feb 2019 13:48:27 +0000 (+0100) Subject: scrollspy.js: remove unused properties X-Git-Tag: v5.0.0-alpha1~1230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dce47b5451c31acdfc2326da6c3a1fb2cb3248c0;p=thirdparty%2Fbootstrap.git scrollspy.js: remove unused properties --- 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