[Pkg-javascript-commits] [backbone] 06/34: a note about namespacing JSON requests.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:43 UTC 2014


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

js pushed a commit to tag 0.1.2
in repository backbone.

commit a797829c8d6e101d1c8ff28502c5133fdeefc25e
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Thu Oct 14 11:48:03 2010 -0400

    a note about namespacing JSON requests.
---
 index.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 0e71dc9..1c52de2 100644
--- a/index.html
+++ b/index.html
@@ -1017,7 +1017,10 @@ var Notes = Backbone.Collection.extend({
     <p>
       The server handler for <b>fetch</b> requests should return a JSON list of
       models, namespaced under "models": <tt>{"models": [...]}</tt> —
-      additional information can be returned with the response under different keys.
+      instead of returning the 
+      array directly, we ask you to namespace your models like this by default, 
+      so that it's possible to send down out-of-band information 
+      for things like pagination or error states.
     </p>
 
 <pre class="runnable">

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