From 16eb3f3d87d547616946d0532425c9e8130d4ff3 Mon Sep 17 00:00:00 2001 From: Jonathan Roes Date: Mon, 20 Jun 2011 17:38:29 -0400 Subject: [PATCH] Minor doc typos --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f948a5a0..87186875 100644 --- a/index.html +++ b/index.html @@ -1391,7 +1391,7 @@ Accounts.fetch(); saving the model to the server, and adding the model to the set after being successfully created. Returns the model, or false if a validation error prevented the - model from being created. In order for this to work, your should set the + model from being created. In order for this to work, you should set the model property of the collection. The create method can accept either an attributes hash or an existing, unsaved model object. @@ -2392,7 +2392,7 @@ Inbox.messages.fetch(); Binding "this"
Perhaps the single most common JavaScript "gotcha" is the fact that when - you pass a function as a callback, it's value for this is lost. With + you pass a function as a callback, its value for this is lost. With Backbone, when dealing with events and callbacks, you'll often find it useful to rely on _.bind and @@ -2400,7 +2400,7 @@ Inbox.messages.fetch(); from Underscore.js. _.bind takes a function and an object to be used as this, any time the function is called in the future. _.bindAll takes an object and a list of method names: each method - in the list will be bound to the object, so that it's this may + in the list will be bound to the object, so that its this may not change. For example, in a View that listens for changes to a collection...