Skip to content

on<Attribute>Change: newValue and oldValue params with object #279

@vbourgeois

Description

@vbourgeois

I noticed that for complex attributes such as object or array, the newValue and oldValue parameters of the onChange method are exactly the same and pointing on the same object (so the new one).
I don't know if it is the expected behavior, but it could be useful as a user to have a copy of the object before the change in the oldValue parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions