Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Fix typos in snippets.js #36758

Merged
merged 1 commit into from Jul 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions site/assets/js/snippets.js
Expand Up @@ -20,7 +20,7 @@
// --------
// Tooltips
// --------
// Instanciate all tooltips in a docs or StackBlitz page
// Instantiate all tooltips in a docs or StackBlitz page
document.querySelectorAll('[data-bs-toggle="tooltip"]')
.forEach(tooltip => {
new bootstrap.Tooltip(tooltip)
Expand All @@ -29,7 +29,7 @@
// --------
// Popovers
// --------
// Instanciate all popovers in a docs or StackBlitz page
// Instantiate all popovers in a docs or StackBlitz page
document.querySelectorAll('[data-bs-toggle="popover"]')
.forEach(popover => {
new bootstrap.Popover(popover)
Expand All @@ -50,7 +50,7 @@
})
}

// Instanciate all toasts in a docs page only
// Instantiate all toasts in a docs page only
document.querySelectorAll('.bd-example .toast')
.forEach(toastNode => {
const toast = new bootstrap.Toast(toastNode, {
Expand All @@ -60,7 +60,7 @@
toast.show()
})

// Instanciate all toasts in a docs page only
// Instantiate all toasts in a docs page only
const toastTrigger = document.getElementById('liveToastBtn')
const toastLiveExample = document.getElementById('liveToast')
if (toastTrigger) {
Expand Down