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

Use for...of in visual tests too

This commit is contained in:
GeoSot
2021-09-06 10:46:03 +03:00
committed by XhmikosR
parent 3afe4b8c7d
commit 598b4c59a6
4 changed files with 34 additions and 35 deletions
+4 -4
View File
@@ -40,10 +40,10 @@
<script src="../../dist/tooltip.js"></script>
<script src="../../dist/popover.js"></script>
<script>
Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
var popoverElements = document.querySelectorAll('[data-bs-toggle="popover"]')
for (const popoverEl of popoverElements) {
new Popover(popoverEl)
}
</script>
</body>
</html>