mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Rename variable
This commit is contained in:
parent
5fc4efb910
commit
cb0ab4e05e
@ -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
|
||||
})
|
||||
|
||||
|
@ -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
|
||||
})
|
||||
|
||||
|
@ -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>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user