1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-14 01:24:19 +02: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

View File

@@ -220,12 +220,12 @@
}
}
[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
var tooltipList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
tooltipList.forEach(function (tooltip) {
new Tooltip(tooltip)
})

View File

@@ -40,7 +40,7 @@
<script src="../../dist/tooltip.js"></script>
<script src="../../dist/popover.js"></script>
<script>
[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})

View File

@@ -92,7 +92,7 @@
})
}
[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
.forEach(function (tooltip) {
new Tooltip(tooltip)
})