From 160fe25cd178062f1f9cfcefff949fb1e6d55a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 20 Oct 2013 17:14:14 +0200 Subject: [PATCH] Improve documentation of #importSVG() methods. --- src/item/Item.js | 6 +++--- src/project/Project.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 906f8529..c0a2d1d3 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1659,12 +1659,12 @@ var Item = Base.extend(Callback, /** @lends Item# */{ */ /** - * Converts the SVG node and all its child nodes into Paper.js items and - * adds them as children to the this item. + * Converts the provided SVG content into Paper.js items and adds them to + * the this item's children list. * * @name Item#importSVG * @function - * @param {SVGSVGElement} node the SVG node to import + * @param {SVGSVGElement|String} svg the SVG content to import * @return {Item} the imported Paper.js parent item */ diff --git a/src/project/Project.js b/src/project/Project.js index f50796e1..67a26880 100644 --- a/src/project/Project.js +++ b/src/project/Project.js @@ -325,12 +325,12 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{ */ /** - * Converts the SVG node and all its child nodes into Paper.js items and - * adds them to the active layer of this project. + * Converts the provided SVG content into Paper.js items and adds them to + * the active layer of this project. * * @name Project#importSVG * @function - * @param {SVGSVGElement} node the SVG node to import + * @param {SVGSVGElement|String} svg the SVG content to import * @return {Item} the imported Paper.js parent item */