diff --git a/index.html b/index.html index 683d54fbc..af1dfe670 100644 --- a/index.html +++ b/index.html @@ -1404,6 +1404,16 @@

Backbone.Model

Instead, define defaults as a function.

+

+ If you set a value for the model’s + idAttribute, you should define + the defaults as a function that returns a different, universally + unique id on every invocation. Not doing so would likely prevent an + instance of Backbone.Collection from correctly identifying model + hashes and is almost certainly a mistake, unless you never add instances + of the model class to a collection. +

+

toJSONmodel.toJSON([options])