Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _posts/2011-01-29-what-is-a-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down