From b1b923ab271184cc162ef5a156a65dfd4853396f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 26 Feb 2011 17:27:07 +0100 Subject: [PATCH] Add comment about problems with Base.clone(). --- src/item/Item.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/item/Item.js b/src/item/Item.js index 3dfe6851..6df5bca2 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -16,6 +16,9 @@ Item = Base.extend({ */ copyTo: function(itemOrDocument) { + // TODO: I don't think we can rely on Base.clone here, as right now it + // ownly produces a shallow clone, and gest confused over Path#length. + // How to handle this? var copy = Base.clone(this); if (itemOrDocument.layers) { copy.parent = itemOrDocument.activeLayer;