2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Enable unicorn/prefer-prototype-methods rule

This commit is contained in:
XhmikosR
2021-03-18 12:58:26 +02:00
parent 57d80fcd32
commit 9f1579aa04
17 changed files with 16 additions and 18 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ To add accordion-like group management to a collapsible area, add the data attri
Enable manually with:
```js
var collapseElementList = [].slice.call(document.querySelectorAll('.collapse'))
var collapseElementList = Array.prototype.slice.call(document.querySelectorAll('.collapse'))
var collapseList = collapseElementList.map(function (collapseEl) {
return new bootstrap.Collapse(collapseEl)
})