Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Jun 29, 2020
1 parent 3854f94 commit b625d6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Used on about 11'000 [Live Websites](https://publicwww.com/websites/ie11CustomPr

**[See the demo!](https://rawcdn.githack.com/nuxodin/ie11CustomProperties/6c465d21a8c043a45cba939995bb434966048377/demo.html)**

**New in v4.0.0: Very fast now**


## Features
- chaining `--bar:var(--foo)`
Expand All @@ -31,7 +29,7 @@ Used on about 11'000 [Live Websites](https://publicwww.com/websites/ie11CustomPr
## Usage
You only want IE11 to load the polyfill, use this snippet in the head of your html file, it just works:
```html
<script>window.MSInputMethodContext && document.documentMode && document.write('<script src="https://cdn.jsdelivr.net/gh/nuxodin/ie11CustomProperties@4.0.1/ie11CustomProperties.min.js"><\x2fscript>');</script>
<script>window.MSInputMethodContext && document.documentMode && document.write('<script src="https://cdn.jsdelivr.net/gh/nuxodin/ie11CustomProperties@4.1.0/ie11CustomProperties.min.js"><\x2fscript>');</script>
```

## Help wanted!
Expand Down
4 changes: 1 addition & 3 deletions ie11CustomProperties.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! ie11CustomProperties.js v4.0.1 | MIT License | https://git.io/fjXMN */
/*! ie11CustomProperties.js v4.1.0 | MIT License | https://git.io/fjXMN */
!function () {
'use strict';

Expand Down Expand Up @@ -198,7 +198,6 @@
if (propName[0] === '❗') propName = propName.substr(1);
getters.push(propName);

// beta
if (!styles_of_getter_properties[propName]) styles_of_getter_properties[propName] = [];
styles_of_getter_properties[propName].push(style);
}
Expand Down Expand Up @@ -274,7 +273,6 @@
drawTree(el);
}

//beta
function redrawStyleSheets() {
for (var prop in styles_of_getter_properties) {
let styles = styles_of_getter_properties[prop];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ie11-custom-properties",
"version": "4.0.1",
"version": "4.1.0",
"description": "Custom Properties polyfill for IE11.",
"main": "ie11CustomProperties.js",
"author": "Tobias Buschor",
Expand Down

0 comments on commit b625d6b

Please sign in to comment.