[Pkg-javascript-commits] [backbone] 31/74: Fixing out-of-date documentation (mrjjwright)

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:59:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.3.0
in repository backbone.

commit 0749421795bb3e666a0a675d82241d21b9137e87
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Thu Oct 28 01:08:58 2010 -0400

    Fixing out-of-date documentation (mrjjwright)
---
 index.html | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html
index 8c742ca..b9a0bf4 100644
--- a/index.html
+++ b/index.html
@@ -1231,12 +1231,13 @@ var othello = NYPL.create({
     </ul>
 
     <p>
-      When formulating server responses for <b>Backbone.sync</b> requests,
-      model attributes will be sent up, serialized as JSON, under the <tt>model</tt>
-      parameter. When returning a JSON response, send down the model's representation
-      under the <tt>model</tt> key, and other keys can be used for additional out-of-band
-      information. When responding to a <tt>"read"</tt> request from a collection,
-      send down the array of model attribute hashes under the <tt>models</tt> key.
+      With the default implementation, when <b>Backbone.sync</b> sends up a request to save 
+      a model, its attributes will be passed, serialized as JSON, under the <tt>model</tt>
+      parameter. When returning a JSON response, send down the attributes of the
+      model that have been changed by the server, and need to be updated on the
+      client. When responding to a <tt>"read"</tt> request from a collection
+      (<a href="#Collection#fetch">Collection#fetch</a>), send down an array
+      of model attribute objects.
     </p>
 
     <p>

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