Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index aa54371e7e..32f9cb91c2 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -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]
}
}