Adjusted requested code styling changes.

master
KB Jørgensen 2016-11-15 09:27:31 +01:00
parent c65f98b0ba
commit b92024eca2
1 changed files with 2 additions and 2 deletions

View File

@ -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));
});