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:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user