Skip to content

Commit 6779495

Browse files
authored
Merge pull request #5 from yola/doug/publish
Release 1.2.0
2 parents 28f2958 + 0a55c84 commit 6779495

File tree

4 files changed

+60
-16
lines changed

4 files changed

+60
-16
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Dev
3+
## 1.2.0
44

55
* Rewrite history for [yola/classlist-polyfill][], branching and rebasing
66
from [eligrey/classList][].
@@ -17,8 +17,10 @@
1717

1818

1919
## 1.0.3
20+
2021
* Add support for missing SVGElement.classList in IE
2122

2223

2324
## 1.0.2
25+
2426
* Fix issue with `self` not being defined in CommonJS

README.md

+29-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1-
classList.js is a cross-browser JavaScript shim that fully implements `element.classList`. Refer to [the MDN page on `element.classList`][1] for more information.
1+
# classlist-polyfill
22

3-
This works in every browser except IE 7 or earlier.
3+
Polyfill for [`element.classList`][docs].
44

5-
An older version is hosted at public CDNs, allowing you to use this already small file at nearly zero size overhead. Use one of these URLs:
5+
This is a published fork of [classList.js][].
66

7-
- [//cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js](//cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js)
8-
- [//cdn.jsdelivr.net/classlist/2014.01.31/classList.min.js](//cdn.jsdelivr.net/classlist/2014.01.31/classList.min.js)
7+
[classList.js]:https://github.com/eligrey/classList.js
8+
[docs]: https://developer.mozilla.org/en/DOM/element.classList
99

10-
If you would like other versions (such as the current one) hosted there, follow the instructions at
11-
https://github.com/jsdelivr/jsdelivr
12-
and
13-
https://github.com/cdnjs/cdnjs
14-
to prepare a pull request.
1510

16-
![Tracking image](https://in.getclicky.com/212712ns.gif)
11+
## Installation
1712

18-
[1]: https://developer.mozilla.org/en/DOM/element.classList "MDN / DOM / element.classList"
13+
Download using [NPM](https://www.npmjs.com/package/classlist-polyfill):
14+
15+
```shell
16+
npm install classlist-polyfill
17+
```
18+
19+
Download using [Bower](http://bower.io/):
20+
21+
```shell
22+
bower install classlist-polyfill
23+
```
24+
25+
26+
## What is the purpose of this repo?
27+
28+
The upstream maintainer has decided [not to publish][comment].
29+
30+
[comment]: https://github.com/eligrey/classList.js/pull/46#issuecomment-189782600
31+
32+
33+
## Contributing
34+
35+
Preferably all changes are made upstream.

bower.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "classlist-polyfill",
3+
"description": "MDN's ClassList Polyfill",
4+
"main": "src/index.js",
5+
"authors": [
6+
"Eli Grey <me@eligrey.com>",
7+
"Yola Engineering <engineers@yola.com> (https://www.yola.com/)"
8+
],
9+
"license": "Unlicense",
10+
"keywords": [
11+
"classList",
12+
"polyfill",
13+
"shim",
14+
"cross-browser"
15+
],
16+
"homepage": "https://github.com/yola/classlist-polyfill",
17+
"ignore": [
18+
"**/.*",
19+
"node_modules",
20+
"bower_components",
21+
"test",
22+
"tests"
23+
]
24+
}

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "classlist-polyfill",
3-
"version": "1.1.20150312",
3+
"version": "1.2.0",
44
"description": "Cross-browser JavaScript shim that fully implements element.classList (referenced on MDN)",
55
"main": "src/index.js",
66
"directories": {
@@ -11,7 +11,7 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/eligrey/classList.js.git"
14+
"url": "git+https://github.com/yola/classlist-polyfill.git"
1515
},
1616
"keywords": [
1717
"classList",
@@ -21,11 +21,12 @@
2121
],
2222
"author": "Eli Grey <me@eligrey.com>",
2323
"contributors": [
24+
"Eli Grey <me@eligrey.com>",
2425
"Yola Engineering <engineers@yola.com> (https://www.yola.com/)"
2526
],
2627
"license": "Unlicense",
2728
"bugs": {
2829
"url": "https://github.com/eligrey/classList.js/issues"
2930
},
30-
"homepage": "https://github.com/eligrey/classList.js#readme"
31+
"homepage": "https://github.com/yola/classlist-polyfill"
3132
}

0 commit comments

Comments
 (0)