Skip to content

Commit

Permalink
moving the methodMap inside of the Backbone.sync section.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 23, 2012
1 parent 3e5f713 commit 71641fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backbone.js
Expand Up @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit 71641fb

Please sign in to comment.