1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +02: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 // Instantiate all toasts in docs pages only
for (const toastNode of document.querySelectorAll('.bd-example .toast')) { for (const toastEl of document.querySelectorAll('.bd-example .toast')) {
const toast = new bootstrap.Toast(toastNode, { const toast = new bootstrap.Toast(toastEl, {
autohide: false autohide: false
}) })

View File

@@ -14,8 +14,8 @@
new bootstrap.Popover(popover) new bootstrap.Popover(popover)
} }
for (const toastNode of document.querySelectorAll('.toast')) { for (const toastEl of document.querySelectorAll('.toast')) {
const toast = new bootstrap.Toast(toastNode, { const toast = new bootstrap.Toast(toastEl, {
autohide: false 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"> <script type="module">
import { Toast } from 'bootstrap.esm.min.js' import { Toast } from 'bootstrap.esm.min.js'
for (const toastNode of document.querySelectorAll('.toast')) { for (const toastEl of document.querySelectorAll('.toast')) {
new Toast(toastNode)) new Toast(toastEl))
} }
</script> </script>
``` ```