From: XhmikosR Date: Fri, 8 May 2020 07:21:50 +0000 (+0300) Subject: Remove variables used once. X-Git-Tag: v4.5.0~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa8a7eca0609791d878131316837e51642ae4f5b;p=thirdparty%2Fbootstrap.git Remove variables used once. --- diff --git a/js/src/dropdown.js b/js/src/dropdown.js index c0f1f6ffe1..4f520f5a8f 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -468,8 +468,7 @@ class Dropdown { if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { if (event.which === ESCAPE_KEYCODE) { - const toggle = parent.querySelector(SELECTOR_DATA_TOGGLE) - $(toggle).trigger('focus') + $(parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus') } $(this).trigger('click') diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 4ab3cafc41..b1990294e4 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -710,8 +710,7 @@ class Tooltip { } _handlePopperPlacementChange(popperData) { - const popperInstance = popperData.instance - this.tip = popperInstance.popper + this.tip = popperData.instance.popper this._cleanTipClass() this.addAttachmentClass(this._getAttachment(popperData.placement)) }