Add comment about problems with Base.clone().

This commit is contained in:
Jürg Lehni 2011-02-26 17:27:07 +01:00
parent 6d25dbbd22
commit b1b923ab27

View file

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