Simplify the code a bit more

master
Magne Bratseth 2016-02-26 09:46:32 +01:00
parent 78f214de8b
commit 48e54b6f85
1 changed files with 1 additions and 2 deletions

View File

@ -634,8 +634,7 @@ svgedit.utilities.cleanupElement = function(element) {
'ry':0 'ry':0
}; };
var nodeName = element.nodeName ? element.nodeName : ''; if (element.nodeName === 'ellipse') {
if (nodeName == 'ellipse') {
// Ellipse elements requires rx and ry attributes // Ellipse elements requires rx and ry attributes
delete defaults.rx; delete defaults.rx;
delete defaults.ry; delete defaults.ry;