mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Merge pull request #23921 from vsn4ik/v4-dev-tooltip-rm-not-necessary
Remove not necessary condition in tooltip.js
This commit is contained in:
commit
1a35257642
@ -622,18 +622,18 @@ const Tooltip = (() => {
|
|||||||
config
|
config
|
||||||
)
|
)
|
||||||
|
|
||||||
if (config.delay && typeof config.delay === 'number') {
|
if (typeof config.delay === 'number') {
|
||||||
config.delay = {
|
config.delay = {
|
||||||
show : config.delay,
|
show : config.delay,
|
||||||
hide : config.delay
|
hide : config.delay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.title && typeof config.title === 'number') {
|
if (typeof config.title === 'number') {
|
||||||
config.title = config.title.toString()
|
config.title = config.title.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.content && typeof config.content === 'number') {
|
if (typeof config.content === 'number') {
|
||||||
config.content = config.content.toString()
|
config.content = config.content.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user