[Pkg-javascript-commits] [backbone] 57/211: merging in fixes for models in multiple collections ...

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:02 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 a2f0468595399ebb2d949a6caa214535d22a26f1
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Sat Jan 22 11:46:07 2011 -0500

    merging in fixes for models in multiple collections ...
---
 index.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.html b/index.html
index 067b290..a645657 100644
--- a/index.html
+++ b/index.html
@@ -769,6 +769,8 @@ book.save({author: "F.D.R."}, {error: function(){ ... }});
       Destroys the model on the server by delegating an HTTP <tt>DELETE</tt>
       request to <a href="#Sync">Backbone.sync</a>. Accepts
       <tt>success</tt> and <tt>error</tt> callbacks in the options hash.
+      Triggers a <tt>"destroy"</tt> event on the model, which will bubble up 
+      through any collections that contain it.
     </p>
 
 <pre>
@@ -1963,6 +1965,7 @@ var DocumentView = Backbone.View.extend({
       <li><b>"refresh"</b> (collection) — when the collection's entire contents have been replaced. </li>
       <li><b>"change"</b> (model, collection) — when a model's attributes have changed. </li>
       <li><b>"change:[attribute]"</b> (model, collection) — when a specific attribute has been updated. </li>
+      <li><b>"destrooy"</b> (model, collection) — when a model is <a href="#Model-destroy">destroyed</a>. </li>
       <li><b>"error"</b> (model, collection) — when a model's validation fails, or a <a href="#Model-save">save</a> call fails on the server. </li>
       <li><b>"route:[name]"</b> (controller) — when one of a controller's routes has matched. </li>
       <li><b>"all"</b> — this special event fires for <i>any</i> triggered event, passing the event name as the first argument. </li>

-- 
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