mirror of
https://github.com/jashkenas/backbone.git
synced 2026-02-10 14:55:06 -05:00
Making the collection-proxies-model-events a bit more clear
This commit is contained in:
@@ -940,8 +940,11 @@ bill.set({name : "Bill Jones"});
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Collections may also listen for changes to specific attributes in their
|
||||
models, for example: <tt>Documents.bind("change:selected", ...)</tt>
|
||||
Any event that is triggered on a model in a collection will also be
|
||||
triggered on the collection directly, for convenience.
|
||||
This allows you to listen for changes to specific attributes in any
|
||||
model in a collection, for example:
|
||||
<tt>Documents.bind("change:selected", ...)</tt>
|
||||
</p>
|
||||
|
||||
<p id="Collection-extend">
|
||||
|
||||
Reference in New Issue
Block a user