diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 815217d0..364b3679 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2992,7 +2992,7 @@ TODOS return false; } - if (attr !== 'id' && attr!=='class') { + if (attr !== 'id' && attr !== 'class') { if (isNaN(val)) { val = svgCanvas.convertToNum(attr, val); } else if (curConfig.baseUnit !== 'px') {