Skip to content

Commit

Permalink
Describe consturctor calling without "new"
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Jan 9, 2012
1 parent 0d2b14e commit ae41cd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -52,6 +52,10 @@ user.save(function (err) {
post.save(console.log);
});

// or just call it as function (with the same result):
var user = User();
user.save(...);

// Common API methods

// just instantiate model
Expand Down

0 comments on commit ae41cd6

Please sign in to comment.