Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-03-18 13:58:26 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-10-05 19:52:11 +0300
commit9f1579aa048eb6a7dee30f60e5c2357b049eff3a (patch)
tree109f14cb931e0922ca1bc1a9b75234b3422e62ed /site/content/docs/5.1/components/toasts.md
parent57d80fcd3274ba1ff0a1580966e098fda80f74e7 (diff)
Enable `unicorn/prefer-prototype-methods` rule
Diffstat (limited to 'site/content/docs/5.1/components/toasts.md')
-rw-r--r--site/content/docs/5.1/components/toasts.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.1/components/toasts.md b/site/content/docs/5.1/components/toasts.md
index 449f0275ce..10093b6bc6 100644
--- a/site/content/docs/5.1/components/toasts.md
+++ b/site/content/docs/5.1/components/toasts.md
@@ -335,7 +335,7 @@ While technically it's possible to add focusable/actionable controls (such as ad
Initialize toasts via JavaScript:
```js
-var toastElList = [].slice.call(document.querySelectorAll('.toast'))
+var toastElList = Array.prototype.slice.call(document.querySelectorAll('.toast'))
var toastList = toastElList.map(function (toastEl) {
return new bootstrap.Toast(toastEl, option)
})