Browse files

Describe consturctor calling without "new"

  • Loading branch information...
1 parent 0d2b14e commit ae41cd697a0fab2a463f70d982f1df6ee6ebff68 @1602 committed Jan 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -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

0 comments on commit ae41cd6

Please sign in to comment.