mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-28 07:39:57 +02:00
Remove variables used once.
This commit is contained in:
@@ -468,8 +468,7 @@ class Dropdown {
|
|||||||
|
|
||||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||||
if (event.which === ESCAPE_KEYCODE) {
|
if (event.which === ESCAPE_KEYCODE) {
|
||||||
const toggle = parent.querySelector(SELECTOR_DATA_TOGGLE)
|
$(parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus')
|
||||||
$(toggle).trigger('focus')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(this).trigger('click')
|
$(this).trigger('click')
|
||||||
|
@@ -710,8 +710,7 @@ class Tooltip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_handlePopperPlacementChange(popperData) {
|
_handlePopperPlacementChange(popperData) {
|
||||||
const popperInstance = popperData.instance
|
this.tip = popperData.instance.popper
|
||||||
this.tip = popperInstance.popper
|
|
||||||
this._cleanTipClass()
|
this._cleanTipClass()
|
||||||
this.addAttachmentClass(this._getAttachment(popperData.placement))
|
this.addAttachmentClass(this._getAttachment(popperData.placement))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user