From 842529e2c4cd378a9bb032b9923258a37450a26d Mon Sep 17 00:00:00 2001 From: Lin Dong Date: Wed, 30 Jul 2014 14:53:05 -0400 Subject: [PATCH] Update 2011-01-29-what-is-a-model.md Add parenthesis --- _posts/2011-01-29-what-is-a-model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2011-01-29-what-is-a-model.md b/_posts/2011-01-29-what-is-a-model.md index d6eac751..b1e2950f 100644 --- a/_posts/2011-01-29-what-is-a-model.md +++ b/_posts/2011-01-29-what-is-a-model.md @@ -20,7 +20,7 @@ So for the purpose of the tutorial let's create a model. } }); - var person = new Person; + var person = new Person(); {% endhighlight %} So _initialize()_ is triggered whenever you create a new instance of a model( models, collections and views work the same way ). You don't have to include it in your model declaration but you will find yourself using it more often than not.