diff --git a/js/src/popover.js b/js/src/popover.js
index 8beec963a2b0..00a97a3f0158 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -28,22 +28,18 @@ const Popover = (($) => {
const Default = {
...Tooltip.Default,
- ...{
- placement : 'right',
- trigger : 'click',
- content : '',
- template : '
'
- }
+ placement : 'right',
+ trigger : 'click',
+ content : '',
+ template : ''
}
const DefaultType = {
...Tooltip.DefaultType,
- ...{
- content : '(string|element|function)'
- }
+ content : '(string|element|function)'
}
const ClassName = {
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 002dea429835..573997e7da2d 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -503,10 +503,8 @@ const Tooltip = (($) => {
if (this.config.selector) {
this.config = {
...this.config,
- ...{
- trigger : 'manual',
- selector : ''
- }
+ trigger : 'manual',
+ selector : ''
}
} else {
this._fixTitle()