aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-11-28 03:06:15 +0200
committerXhmikosR <[email protected]>2021-12-01 18:00:36 +0200
commita20e4203fe951593e804254f8d0593a822dc5e50 (patch)
tree72f7062c99bc1e727823bf610887581b1424147a /js
parent724663b3cdebf436649d250c5ab52cca8f0c9320 (diff)
downloadbootstrap-a20e4203fe951593e804254f8d0593a822dc5e50.tar.xz
bootstrap-a20e4203fe951593e804254f8d0593a822dc5e50.zip
Tooltip: Remove redundant `config.delay` check
`config.delay` is always an object after initialization
Diffstat (limited to 'js')
-rw-r--r--js/src/tooltip.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 3027b8f4c..ccec08dda 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -528,7 +528,7 @@ class Tooltip extends BaseComponent {
context._hoverState = HOVER_STATE_SHOW
- if (!context._config.delay || !context._config.delay.show) {
+ if (!context._config.delay.show) {
context.show()
return
}
@@ -557,7 +557,7 @@ class Tooltip extends BaseComponent {
context._hoverState = HOVER_STATE_OUT
- if (!context._config.delay || !context._config.delay.hide) {
+ if (!context._config.delay.hide) {
context.hide()
return
}