mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Use for...of in visual tests too
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user