Skip to content

Instantly share code, notes, and snippets.

@kriszyp
Created January 15, 2014 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kriszyp/8446857 to your computer and use it in GitHub Desktop.
Save kriszyp/8446857 to your computer and use it in GitHub Desktop.
> foo = new Model();
> foo.bar = {baz:3}
> foo.property('bar').property('baz').observe(function(value){console.log('baz new value', value);});
> foo.set('bar', {baz:5});
baz new value 5 VM6359:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment