Skip to content

Commit 8ac5d7f

Browse files
author
Sam Grace
committed
feat: BREAKING CHANGE remove Element.closest polyfill
1 parent 93e5951 commit 8ac5d7f

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
A better API wrapper for segment. Uses a slightly amended script loading method as opposed to the [Segment Quick Start Guide](https://segment.com/docs/sources/website/analytics.js/quickstart/).
66
Adds automatic tracking to elements that are clicked.
77

8+
A polyfill for Element.prototype.closest is required to support older browsers.
89

910
## Setup
1011

Diff for: src/closest-polyfill.js

-21
This file was deleted.

Diff for: src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import './closest-polyfill';
21
import loadScript from './load-script';
32

43
// Lower case the first character of any string

0 commit comments

Comments
 (0)