From ecc8997f930a9364a77a2ca79ae074179af87942 Mon Sep 17 00:00:00 2001 From: mynamesleon Date: Sun, 5 Jul 2020 18:15:20 +0100 Subject: [PATCH] update examples to remove `new` keyword --- README.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd8dfca..8d9bf01 100644 --- a/README.md +++ b/README.md @@ -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: @@ -64,7 +64,7 @@ This means your HTML only needs to indicate the relationship between the tabs an
...
``` diff --git a/package.json b/package.json index 54797fa..156d9c7 100644 --- a/package.json +++ b/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",