From d3ed6cbb8c3ee4469c33830a7d7d76b6f80e1382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Fri, 26 Jan 2018 14:59:39 +0100 Subject: [PATCH] Changed code style as requested in svgedit pull request #208. --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 71054e8d..152bd0d9 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3817,7 +3817,7 @@ this.svgToString = function(elem, indent) { var el = this; // for some elements have no attribute var uri = this.namespaceURI; - if(uri && !nsuris[uri] && nsMap[uri] && nsMap[uri] !== 'xmlns' && nsMap[uri] !== 'xml' ) { + if (uri && !nsuris[uri] && nsMap[uri] && nsMap[uri] !== 'xmlns' && nsMap[uri] !== 'xml' ) { nsuris[uri] = true; out.push(' xmlns:' + nsMap[uri] + '="' + uri +'"'); } @@ -4596,7 +4596,7 @@ this.setSvgString = function(xmlString, preventUndo) { svgedit.path.clearData(); svgroot.appendChild(selectorManager.selectorParentGroup); - if(!preventUndo) addCommandToHistory(batchCmd); + if (!preventUndo) addCommandToHistory(batchCmd); call('changed', [svgcontent]); } catch(e) { console.log(e);