Skip to content

Commit

Permalink
api documenting
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Feb 2, 2011
1 parent 0587c96 commit de86ff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/web/views/api/odm.jade
Expand Up @@ -225,16 +225,16 @@ p.note Everything here is experimental, and the API is no exception, so expect t

p You can bind for events on documents. These are the supported events:

h2 "beforeValidate" (document)
h3 "beforeValidate" (document)
p Called after the "save" is called on the API, but before any validation is done.

h2 "afterValidate" (document)
h3 "afterValidate" (document)
p Called after validation is done.

h2 "beforeSave" (document)
h3 "beforeSave" (document)
p Called before saving is done.

h2 "afterSave" (document)
h3 "afterSave" (document)
p Called after saving is done.

p Example:
Expand Down

0 comments on commit de86ff1

Please sign in to comment.