diff --git a/content/collections2.html b/content/collections2.html index 046536b..208dd12 100644 --- a/content/collections2.html +++ b/content/collections2.html @@ -202,7 +202,7 @@

Using the Model class

So, how can we use this model class? Here is a simple example of how to define a model:

function Photo(attr) {
-  Model.prototype.apply(this, attr);
+  Model.apply(this, attr);
 }
 
 Photo.prototype = new Model();
@@ -223,7 +223,7 @@ 

Using the Model class

function Photo(attr) {
   attr.src || (attr.src = 'default.jpg');
-  Model.prototype.apply(this, attr);
+  Model.apply(this, attr);
 }