Skip to content

Commit

Permalink
Simplify spread (#24774)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsn4ik authored and Johann-S committed Nov 15, 2017
1 parent c81ce9f commit 2cafb9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
20 changes: 8 additions & 12 deletions js/src/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,18 @@ const Popover = (($) => {

const Default = {
...Tooltip.Default,
...{
placement : 'right',
trigger : 'click',
content : '',
template : '<div class="popover" role="tooltip">'
+ '<div class="arrow"></div>'
+ '<h3 class="popover-header"></h3>'
+ '<div class="popover-body"></div></div>'
}
placement : 'right',
trigger : 'click',
content : '',
template : '<div class="popover" role="tooltip">'
+ '<div class="arrow"></div>'
+ '<h3 class="popover-header"></h3>'
+ '<div class="popover-body"></div></div>'
}

const DefaultType = {
...Tooltip.DefaultType,
...{
content : '(string|element|function)'
}
content : '(string|element|function)'
}

const ClassName = {
Expand Down
6 changes: 2 additions & 4 deletions js/src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,8 @@ const Tooltip = (($) => {
if (this.config.selector) {
this.config = {
...this.config,
...{
trigger : 'manual',
selector : ''
}
trigger : 'manual',
selector : ''
}
} else {
this._fixTitle()
Expand Down

0 comments on commit 2cafb9f

Please sign in to comment.