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.