mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-19 14:00:24 +00:00
Remove not necessary condition in tooltip.js
This commit is contained in:
parent
7add90db9c
commit
d5890cb82f
1 changed files with 3 additions and 3 deletions
|
|
@ -622,18 +622,18 @@ const Tooltip = (() => {
|
|||
config
|
||||
)
|
||||
|
||||
if (config.delay && typeof config.delay === 'number') {
|
||||
if (typeof config.delay === 'number') {
|
||||
config.delay = {
|
||||
show : config.delay,
|
||||
hide : config.delay
|
||||
}
|
||||
}
|
||||
|
||||
if (config.title && typeof config.title === 'number') {
|
||||
if (typeof config.title === 'number') {
|
||||
config.title = config.title.toString()
|
||||
}
|
||||
|
||||
if (config.content && typeof config.content === 'number') {
|
||||
if (typeof config.content === 'number') {
|
||||
config.content = config.content.toString()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue