diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-06-26 18:50:04 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-07-12 15:52:25 +0300 |
commit | 6d86b140f96049661675cfd83d219b4b82385e36 (patch) | |
tree | 6b7d5aad12ec8c71067bd623db3b28c164da039f /js/src/tooltip.js | |
parent | a67231ae1c352c37a278ac501d7ffb91b1eb20c7 (diff) |
Add parentheses around multiple spread conditions
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r-- | js/src/tooltip.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index d8d92f57d1..9ad73328be 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') { |