Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2018-09-14 15:27:30 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-02-20 23:05:45 +0300
commita2f1d7904593f52704a74d105eb820912d014493 (patch)
tree177c86f128eaf678956b8a067058bc1f472e0382 /js/src/collapse.js
parent19b836c9070c1464fc320e8cfd30631e7cb0c96a (diff)
Refactor util plugin and some tests
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r--js/src/collapse.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index dae60e1227..838eea4d1c 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -311,13 +311,13 @@ class Collapse {
const selector =
`[data-toggle="collapse"][data-parent="${this._config.parent}"]`
- const elements = Util.makeArray(SelectorEngine.find(selector, parent))
- elements.forEach((element) => {
- this._addAriaAndCollapsedClass(
- Collapse._getTargetFromElement(element),
- [element]
- )
- })
+ Util.makeArray(SelectorEngine.find(selector, parent))
+ .forEach((element) => {
+ this._addAriaAndCollapsedClass(
+ Collapse._getTargetFromElement(element),
+ [element]
+ )
+ })
return parent
}