aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-06-26 18:50:04 +0300
committerXhmikosR <[email protected]>2020-07-12 15:52:25 +0300
commit6d86b140f96049661675cfd83d219b4b82385e36 (patch)
tree6b7d5aad12ec8c71067bd623db3b28c164da039f /js/src/tooltip.js
parenta67231ae1c352c37a278ac501d7ffb91b1eb20c7 (diff)
downloadbootstrap-6d86b140f96049661675cfd83d219b4b82385e36.tar.xz
bootstrap-6d86b140f96049661675cfd83d219b4b82385e36.zip
Add parentheses around multiple spread conditions
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index d8d92f57d..9ad73328b 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -491,7 +491,7 @@ class Tooltip {
offset.fn = data => {
data.offsets = {
...data.offsets,
- ...this.config.offset(data.offsets, this.element) || {}
+ ...(this.config.offset(data.offsets, this.element) || {})
}
return data
@@ -689,7 +689,7 @@ class Tooltip {
config = {
...this.constructor.Default,
...dataAttributes,
- ...typeof config === 'object' && config ? config : {}
+ ...(typeof config === 'object' && config ? config : {})
}
if (typeof config.delay === 'number') {