From d3ae0aa92af623b95a604cac0c9dde6ce004aea1 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Wed, 11 Jan 2012 15:56:27 -0500 Subject: [PATCH] Fixes #839 --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index de304f73..cb81f980 100644 --- a/index.html +++ b/index.html @@ -628,6 +628,7 @@ note.set({title: "October 12", content: "Lorem Ipsum Dolor Sit Amet..."}); If the model has a validate method, it will be validated before the attributes are set, no changes will occur if the validation fails, and set will return false. + Otherwise, set returns a reference to the model. You may also pass an error callback in the options, which will be invoked instead of triggering an "error" event, should validation fail.