mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-22 21:38:00 -05:00
Note options parameter for add/remove/reset in Catalog of Events.
This commit is contained in:
@@ -3261,9 +3261,9 @@ var model = localBackbone.Model.extend(...);
|
||||
</p>
|
||||
|
||||
<ul class="small">
|
||||
<li><b>"add"</b> (model, collection) — when a model is added to a collection. </li>
|
||||
<li><b>"remove"</b> (model, collection) — when a model is removed from a collection. </li>
|
||||
<li><b>"reset"</b> (collection) — when the collection's entire contents have been replaced. </li>
|
||||
<li><b>"add"</b> (model, collection, options) — when a model is added to a collection. </li>
|
||||
<li><b>"remove"</b> (model, collection, options) — when a model is removed from a collection. </li>
|
||||
<li><b>"reset"</b> (collection, options) — when the collection's entire contents have been replaced. </li>
|
||||
<li><b>"change"</b> (model, options) — when a model's attributes have changed. </li>
|
||||
<li><b>"change:[attribute]"</b> (model, value, options) — when a specific attribute has been updated. </li>
|
||||
<li><b>"destroy"</b> (model, collection) — when a model is <a href="#Model-destroy">destroyed</a>. </li>
|
||||
|
||||
Reference in New Issue
Block a user