Skip to content

Conversation

@hendrul
Copy link

@hendrul hendrul commented Sep 23, 2016

var car = {
   brand: 'Ford',
   color: 'Red',
   owner: {
      name: 'John Doe',
      age: 34
   }
}

var instance = Car.create(car);
instance.color = 'Blue';
instance.owner.name = 'Dick Harper';
console.log(instance.$modified()); //{ "color": "Blue", "owner": { "name": "Dick Harper" }}

@nateabele
Copy link
Member

Needs a test, but the patch looks good. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants