Skip to content

Commit

Permalink
update examples to remove new keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
mynamesleon committed Jul 5, 2020
1 parent 409c00b commit ecc8997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -27,7 +27,7 @@ npm install aria-tablist

```javascript
import AriaTablist from 'aria-tablist';
new AriaTablist(document.getElementById('tablist'), options);
AriaTablist(document.getElementById('tablist'), options);
```

Or grab the minified JavaScript from unpkg:
Expand Down Expand Up @@ -64,7 +64,7 @@ This means your HTML only needs to indicate the relationship between the tabs an
<div data-labelledby="tab-3">...</div>

<script>
new AriaTablist(document.getElementById('tabs'));
AriaTablist(document.getElementById('tabs'));
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "aria-tablist",
"version": "1.2.1",
"version": "1.2.2",
"description": "Dependency-free plain JavaScript module for WCAG compliant tablists",
"main": "dist/aria-tablist.min.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit ecc8997

Please sign in to comment.