mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Enable unicorn/prefer-prototype-methods rule
This commit is contained in:
@@ -182,7 +182,7 @@ Initialize elements as alerts
|
||||
|
||||
```js
|
||||
var alertList = document.querySelectorAll('.alert')
|
||||
var alerts = [].slice.call(alertList).map(function (element) {
|
||||
var alerts = Array.prototype.slice.call(alertList).map(function (element) {
|
||||
return new bootstrap.Alert(element)
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user