mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
plugins/moveElemsAttrsToGroup: fix inheitable only attrs array (fix #47)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
var nonInheritedAttrs = require('./_collections').nonInheritedAttrs;
|
||||
var inheritableAttrs = require('./_collections').inheritableAttrs;
|
||||
|
||||
/**
|
||||
* Collapse content's intersected and inheritable
|
||||
@ -85,7 +85,7 @@ function intersectInheritableAttrs(a, b) {
|
||||
for (var n in a) {
|
||||
if (
|
||||
b.hasOwnProperty(n) &&
|
||||
nonInheritedAttrs.indexOf(n) === -1 &&
|
||||
inheritableAttrs.indexOf(n) > -1 &&
|
||||
a[n].name === b[n].name &&
|
||||
a[n].value === b[n].value &&
|
||||
a[n].prefix === b[n].prefix &&
|
||||
|
Reference in New Issue
Block a user