Skip to content

Commit

Permalink
Merge pull request svg#351 from dennari/master
Browse files Browse the repository at this point in the history
Don't remove `styles` in removeUselessDefs.js
  • Loading branch information
GreLI committed May 24, 2015
2 parents ac312a3 + efe447a commit af3611f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/removeUselessDefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports.fn = function(item) {

function getUsefulItems(usefulItems, item) {

if (item.hasAttr('id')) {
if (item.hasAttr('id') || item.isElem('style')) {

usefulItems.push(item);
item.parentNode = defs;
Expand Down

0 comments on commit af3611f

Please sign in to comment.