mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 17:14:04 +02:00
Rename variable
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user