[Pkg-javascript-commits] [backbone] 244/281: moving the methodMap inside of the Backbone.sync section.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:18 UTC 2014


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

js pushed a commit to tag 0.9.0
in repository backbone.

commit 71641fbe03aea49d47a3142437af87b753d8c92c
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Jan 23 15:06:31 2012 -0500

    moving the methodMap inside of the Backbone.sync section.
---
 backbone.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/backbone.js b/backbone.js
index a03e146..64ad380 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1086,6 +1086,9 @@
   Backbone.Model.extend = Backbone.Collection.extend =
     Backbone.Router.extend = Backbone.View.extend = extend;
 
+  // Backbone.sync
+  // -------------
+
   // Map from CRUD to HTTP for our default `Backbone.sync` implementation.
   var methodMap = {
     'create': 'POST',
@@ -1094,9 +1097,6 @@
     'read':   'GET'
   };
 
-  // Backbone.sync
-  // -------------
-
   // Override this function to change the manner in which Backbone persists
   // models to the server. You will be passed the type of request, and the
   // model in question. By default, makes a RESTful Ajax request

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