From: GeoSot Date: Sun, 28 Nov 2021 01:06:15 +0000 (+0200) Subject: Tooltip: Remove redundant `config.delay` check X-Git-Tag: v5.2.0-beta1~386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a20e4203fe951593e804254f8d0593a822dc5e50;p=thirdparty%2Fbootstrap.git Tooltip: Remove redundant `config.delay` check `config.delay` is always an object after initialization --- diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 3027b8f4c6..ccec08ddac 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 }