1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 05:03:16 +02: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

View File

@@ -92,10 +92,10 @@
})
}
Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
.forEach(function (tooltip) {
new Tooltip(tooltip)
})
var tooltipElements = document.querySelectorAll('[data-bs-toggle="tooltip"]')
for (const tooltipEl of tooltipElements) {
new Tooltip(tooltipEl)
}
var tooltipElement = document.getElementById('tooltipElement')
var tooltipElementInstance = new Tooltip(tooltipElement, {