mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Tooltip: Remove redundant config.delay check
`config.delay` is always an object after initialization
This commit is contained in:
+2
-2
@@ -528,7 +528,7 @@ class Tooltip extends BaseComponent {
|
|||||||
|
|
||||||
context._hoverState = HOVER_STATE_SHOW
|
context._hoverState = HOVER_STATE_SHOW
|
||||||
|
|
||||||
if (!context._config.delay || !context._config.delay.show) {
|
if (!context._config.delay.show) {
|
||||||
context.show()
|
context.show()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -557,7 +557,7 @@ class Tooltip extends BaseComponent {
|
|||||||
|
|
||||||
context._hoverState = HOVER_STATE_OUT
|
context._hoverState = HOVER_STATE_OUT
|
||||||
|
|
||||||
if (!context._config.delay || !context._config.delay.hide) {
|
if (!context._config.delay.hide) {
|
||||||
context.hide()
|
context.hide()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user