[Pkg-javascript-commits] [backbone] 34/211: Making the collection-proxies-model-events a bit more clear
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:59:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit 261059356c135de75526b15fe52e25823dddf53a
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Fri Dec 17 18:02:45 2010 -0500
Making the collection-proxies-model-events a bit more clear
---
index.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index c8b1d22..eb68b91 100644
--- a/index.html
+++ b/index.html
@@ -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">
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list