This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ from 'underscore'; | |
import Backbone from 'backbone'; | |
import {stringify} from 'qs'; | |
const backboneSync = Backbone.sync.bind(Backbone); | |
const MIME_TYPE_JSON = 'application/json'; | |
const MIME_TYPE_DEFAULT = 'application/x-www-form-urlencoded; charset=UTF-8'; | |
Backbone.sync = (method, model, options) => { |