Skip to content

Comments

Now $modified recurse on objects#50

Open
hendrul wants to merge 1 commit intoradify:masterfrom
hendrul:master
Open

Now $modified recurse on objects#50
hendrul wants to merge 1 commit intoradify:masterfrom
hendrul:master

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