mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-14 01:21:00 +00:00
Tooltip: Remove redundant config.delay check
`config.delay` is always an object after initialization
This commit is contained in:
parent
724663b3cd
commit
a20e4203fe
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue