Skip to content

Now $modified recurse on objects#50

Open
hendrul wants to merge 1 commit into
radify:masterfrom
hendrul:master
Open

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

Conversation

@hendrul

@hendrul hendrul commented Sep 23, 2016

Copy link
Copy Markdown
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
Copy Markdown
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