Skip to content

Commit

Permalink
Replace deprecated methods in jsAPI (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv committed Aug 12, 2021
1 parent 454b427 commit efa518b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/svgo/jsAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ JSAPI.prototype.addAttr = function (attr) {

if (attr.name === 'class') {
// newly added class attribute
this.class.hasClass();
this.class.addClassValueHandler();
}

if (attr.name === 'style') {
// newly added style attribute
this.style.hasStyle();
this.style.addStyleValueHandler();
}

return this.attrs[attr.name];
Expand Down

0 comments on commit efa518b

Please sign in to comment.