0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

Rename variable

This commit is contained in:
XhmikosR 2024-03-11 16:40:04 +02:00
parent 5fc4efb910
commit cb0ab4e05e
3 changed files with 6 additions and 6 deletions

View File

@ -48,8 +48,8 @@
}
// Instantiate all toasts in docs pages only
for (const toastNode of document.querySelectorAll('.bd-example .toast')) {
const toast = new bootstrap.Toast(toastNode, {
for (const toastEl of document.querySelectorAll('.bd-example .toast')) {
const toast = new bootstrap.Toast(toastEl, {
autohide: false
})

View File

@ -14,8 +14,8 @@
new bootstrap.Popover(popover)
}
for (const toastNode of document.querySelectorAll('.toast')) {
const toast = new bootstrap.Toast(toastNode, {
for (const toastEl of document.querySelectorAll('.toast')) {
const toast = new bootstrap.Toast(toastEl, {
autohide: false
})

View File

@ -39,8 +39,8 @@ We provide a version of Bootstrap built as `ESM` (`bootstrap.esm.js` and `bootst
<script type="module">
import { Toast } from 'bootstrap.esm.min.js'
for (const toastNode of document.querySelectorAll('.toast')) {
new Toast(toastNode))
for (const toastEl of document.querySelectorAll('.toast')) {
new Toast(toastEl))
}
</script>
```