Skip to content

clone() objects are not retaining properties #88

@ghost

Description

I noticed this in my own code but you can actually see the effects of this problem in the docs example here:

http://ocanvas.org/docs/Display-Objects/Base/clone

There is only one black rectangle when there should be two. If the example code is edited so that:

var rectangle_2 = rectangle_1.clone({
    x: 77,
    y: 190,
    width: 200,
    height: 100
});

The rectangle will now appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions