From 48e54b6f859f83f61af24e18979665aabbe302a5 Mon Sep 17 00:00:00 2001 From: Magne Bratseth Date: Fri, 26 Feb 2016 09:46:32 +0100 Subject: [PATCH] Simplify the code a bit more --- editor/svgutils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/svgutils.js b/editor/svgutils.js index dcc8c118..d3d9b011 100644 --- a/editor/svgutils.js +++ b/editor/svgutils.js @@ -634,8 +634,7 @@ svgedit.utilities.cleanupElement = function(element) { 'ry':0 }; - var nodeName = element.nodeName ? element.nodeName : ''; - if (nodeName == 'ellipse') { + if (element.nodeName === 'ellipse') { // Ellipse elements requires rx and ry attributes delete defaults.rx; delete defaults.ry;