From b92024eca2d77eca92d732be2222db24b24f6872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Tue, 15 Nov 2016 09:27:31 +0100 Subject: [PATCH] Adjusted requested code styling changes. --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 0d16031d..35c25a06 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -190,7 +190,7 @@ var selectedElements = []; // // Returns: The new element var addSvgElementFromJson = this.addSvgElementFromJson = function(data) { - if(typeof(data) == 'string') return svgdoc.createTextNode(data); + if (typeof(data) == 'string') return svgdoc.createTextNode(data); var shape = svgedit.utilities.getElem(data.attr.id); // if shape is a path but we need to create a rect/ellipse, then remove the path @@ -223,7 +223,7 @@ var addSvgElementFromJson = this.addSvgElementFromJson = function(data) { svgedit.utilities.cleanupElement(shape); // Children - if(data.children) { + if (data.children) { data.children.forEach(function(child) { shape.appendChild(addSvgElementFromJson(child)); });