mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Add comment about problems with Base.clone().
This commit is contained in:
parent
6d25dbbd22
commit
b1b923ab27
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ Item = Base.extend({
|
||||||
*/
|
*/
|
||||||
|
|
||||||
copyTo: function(itemOrDocument) {
|
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);
|
var copy = Base.clone(this);
|
||||||
if (itemOrDocument.layers) {
|
if (itemOrDocument.layers) {
|
||||||
copy.parent = itemOrDocument.activeLayer;
|
copy.parent = itemOrDocument.activeLayer;
|
||||||
|
|
Loading…
Reference in a new issue