Split code for added clarity.
parent
4994deb6ec
commit
c65f98b0ba
|
@ -223,9 +223,11 @@ var addSvgElementFromJson = this.addSvgElementFromJson = function(data) {
|
|||
svgedit.utilities.cleanupElement(shape);
|
||||
|
||||
// Children
|
||||
if(data.children) data.children.forEach(function(child){
|
||||
shape.appendChild(addSvgElementFromJson(child));
|
||||
});
|
||||
if(data.children) {
|
||||
data.children.forEach(function(child) {
|
||||
shape.appendChild(addSvgElementFromJson(child));
|
||||
});
|
||||
}
|
||||
|
||||
return shape;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue