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/offcanvas.md
parent57d80fcd3274ba1ff0a1580966e098fda80f74e7 (diff)
Enable `unicorn/prefer-prototype-methods` rule
Diffstat (limited to 'site/content/docs/5.1/components/offcanvas.md')
-rw-r--r--site/content/docs/5.1/components/offcanvas.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.1/components/offcanvas.md b/site/content/docs/5.1/components/offcanvas.md
index 6be2cd64d4..a5bf9426fe 100644
--- a/site/content/docs/5.1/components/offcanvas.md
+++ b/site/content/docs/5.1/components/offcanvas.md
@@ -211,7 +211,7 @@ While both ways to dismiss an offcanvas are supported, keep in mind that dismiss
Enable manually with:
```js
-var offcanvasElementList = [].slice.call(document.querySelectorAll('.offcanvas'))
+var offcanvasElementList = Array.prototype.slice.call(document.querySelectorAll('.offcanvas'))
var offcanvasList = offcanvasElementList.map(function (offcanvasEl) {
return new bootstrap.Offcanvas(offcanvasEl)
})