Permalink
Browse files

Markdown formatting

  • Loading branch information...
1 parent e56e1fc commit e9a6d54a799d2e633507322b90e87f5e71ec3ed3 Dan Dean committed Sep 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
@@ -87,10 +87,12 @@ user.on('change', function(property, old, value) {
user.on('change:name', function(old, value) {
// When the "name" property changes on a specific User instance
});
+```
**Observe model creation and deletion and save**
+```js
User.on('new', function(instance) {
// When any User model is created.
});
@@ -112,6 +114,7 @@ user.on('save', function(instance) {
user.on('delete', function(instance) {
// When a specific User model is deleted.
});
+```
**Serialize the instance to pure JSON**

0 comments on commit e9a6d54

Please sign in to comment.