mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 13:29:06 +02:00
Rename variables
This commit is contained in:
@@ -254,12 +254,12 @@ class Tooltip extends BaseComponent {
|
||||
}
|
||||
|
||||
const complete = () => {
|
||||
const prevHoverState = this._isHovered
|
||||
const previousHoverState = this._isHovered
|
||||
|
||||
this._isHovered = false
|
||||
EventHandler.trigger(this._element, this.constructor.Event.SHOWN)
|
||||
|
||||
if (prevHoverState) {
|
||||
if (previousHoverState) {
|
||||
this._leave()
|
||||
}
|
||||
}
|
||||
@@ -408,7 +408,7 @@ class Tooltip extends BaseComponent {
|
||||
const { offset } = this._config
|
||||
|
||||
if (typeof offset === 'string') {
|
||||
return offset.split(',').map(val => Number.parseInt(val, 10))
|
||||
return offset.split(',').map(value => Number.parseInt(value, 10))
|
||||
}
|
||||
|
||||
if (typeof offset === 'function') {
|
||||
@@ -572,9 +572,9 @@ class Tooltip extends BaseComponent {
|
||||
_getConfig(config) {
|
||||
const dataAttributes = Manipulator.getDataAttributes(this._element)
|
||||
|
||||
for (const dataAttr of Object.keys(dataAttributes)) {
|
||||
if (DISALLOWED_ATTRIBUTES.has(dataAttr)) {
|
||||
delete dataAttributes[dataAttr]
|
||||
for (const dataAttribute of Object.keys(dataAttributes)) {
|
||||
if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {
|
||||
delete dataAttributes[dataAttribute]
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user