Skip to content

Commit 6dc789c

Browse files
committed
docs: update documentation
1 parent 2118c79 commit 6dc789c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/content/migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ toc: true
392392
- **All plugins can now accept a CSS selector as the first argument.** You can either pass a DOM element or any valid CSS selector to create a new instance of the plugin:
393393

394394
```js
395-
var modal = new coreui.Modal('#myModal')
396-
var dropdown = new coreui.Dropdown('[data-coreui-toggle="dropdown"]')
395+
const modal = new coreui.Modal('#myModal')
396+
const dropdown = new coreui.Dropdown('[data-coreui-toggle="dropdown"]')
397397
```
398398

399399
- `popperConfig` can be passed as a function that accepts the Bootstrap's default Popper config as an argument, so that you can merge this default configuration in your way. **Applies to dropdowns, popovers, and tooltips.**

docs/static/assets/js/validate-forms.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
'use strict'
44

55
// Fetch all the forms we want to apply custom Bootstrap validation styles to
6-
var forms = document.querySelectorAll('.needs-validation')
6+
const forms = document.querySelectorAll('.needs-validation')
77

88
// Loop over them and prevent submission
99
Array.prototype.slice.call(forms)
10-
.forEach(function (form) {
11-
form.addEventListener('submit', function (event) {
10+
.forEach(form => {
11+
form.addEventListener('submit', event => {
1212
if (!form.checkValidity()) {
1313
event.preventDefault()
1414
event.stopPropagation()

0 commit comments

Comments
 (0)