Skip to content

Commit

Permalink
- use setProperty instead of removeProperty to optimize for gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye Hohenberger committed Aug 24, 2017
1 parent 7273c81 commit b98bc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function setAccessor(node, name, old, value, isSvg) {
if (typeof old!=='string') {
for (let i in old) if (!(i in value)) {
if (~i.indexOf('-')) {
node.style.removeProperty(i);
node.style.setProperty(i, '');
} else {
node.style[i] = '';
}
Expand Down

0 comments on commit b98bc18

Please sign in to comment.