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
4 changes: 2 additions & 2 deletions content/collections2.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ <h2>Using the Model class</h2>
<p>So, how can we use this model class? Here is a simple example of how to define a model:</p>

<pre class="prettyprint">function Photo(attr) {
Model.prototype.apply(this, attr);
Model.apply(this, attr);
}

Photo.prototype = new Model();
Expand All @@ -223,7 +223,7 @@ <h2>Using the Model class</h2>

<pre class="prettyprint">function Photo(attr) {
attr.src || (attr.src = 'default.jpg');
Model.prototype.apply(this, attr);
Model.apply(this, attr);
}
</pre>

Expand Down