From 0bf50b0b42c3b01f3853423fa9f0c8e089322e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Mon, 14 Nov 2016 09:54:53 +0100 Subject: [PATCH] Added description of the new children option to the addSvgElementFromJson() function. --- editor/svgcanvas.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index e2830ece..00d439c6 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -186,6 +186,7 @@ var selectedElements = []; // * element - tag name of the SVG element to create // * attr - Object with attributes key-values to assign to the new element // * curStyles - Boolean indicating that current style attributes should be applied first +// * children - Optional array with data objects to be added recursively as children // // Returns: The new element var addSvgElementFromJson = this.addSvgElementFromJson = function addSvgElementFromJson(data) {