]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove variables used once.
authorXhmikosR <xhmikosr@gmail.com>
Fri, 8 May 2020 07:21:50 +0000 (10:21 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 12 May 2020 16:21:36 +0000 (19:21 +0300)
js/src/dropdown.js
js/src/tooltip.js

index c0f1f6ffe1eb7b255847d31a1ba6336acd4ffd45..4f520f5a8f9a96920e883a07ab89e2c02da4ec00 100644 (file)
@@ -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')
index 4ab3cafc411a4fcab537da10a1792fad9ce2c882..b1990294e4b191b3e9e16133c7f1b22452e60b09 100644 (file)
@@ -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))
   }