aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-03-08 11:15:58 +0100
committerJohann-S <[email protected]>2017-03-08 11:15:58 +0100
commitfa1504e6f68974114e3ab58b8b18a601bc973103 (patch)
tree2a51eb5c75fce327a1dda11c0a87ad96ec21f6b9 /js/src
parent099486f294e79bfe1f2c6b431ee4696237f616cd (diff)
downloadbootstrap-fa1504e6f68974114e3ab58b8b18a601bc973103.tar.xz
bootstrap-fa1504e6f68974114e3ab58b8b18a601bc973103.zip
Fix code style
Diffstat (limited to 'js/src')
-rw-r--r--js/src/collapse.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index e2c9efe11..0776519ff 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -78,7 +78,6 @@ const Collapse = (($) => {
`[data-toggle="collapse"][href="#${element.id}"],` +
`[data-toggle="collapse"][data-target="#${element.id}"]`
))
-
this._parent = this._config.parent ? this._getParent() : null
if (!this._config.parent) {
@@ -89,7 +88,7 @@ const Collapse = (($) => {
if (this._parent) {
const childrenSelector = this._parent.hasAttribute(Selector.DATA_CHILDREN) ? this._parent.getAttribute(Selector.DATA_CHILDREN) : null
if (childrenSelector !== null) {
- this._selectorActives = childrenSelector + ' > .show, ' + childrenSelector + ' > .collapsing'
+ this._selectorActives = `${childrenSelector} > .show, ${childrenSelector} > .collapsing`
}
}