Coder Social home page Coder Social logo

backbone-http's People

Contributors

gwilymhumphreys avatar kmalakoff avatar kvnloo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

backbone-http's Issues

Set headers on sync

I'd really like to be able to set some custom headers on sync, and I thought I'd create an issue before I hack it in myself. Any thoughts on this? My particular use case is being able to identify which client is making the request

Type Error: Backbone is undefined

The last line seems to be the offending line:

/*
      backbone-http.js 0.7.0
      Copyright (c) 2013-2014 Vidigami
      License: MIT (http://www.opensource.org/licenses/mit-license.php)
      Source: https://github.com/vidigami/backbone-http
      Dependencies: Backbone.js and Underscore.js.
     */
    var Backbone, BackboneORM, CAPABILITIES, HTTPCursor, HTTPSync, JSONUtils, Schema, URL, Utils, backboneSync, _, _ref;

    _ref = BackboneORM = __webpack_require__(1), _ = _ref._, Backbone = _ref.Backbone, Utils = _ref.Utils, JSONUtils = _ref.JSONUtils, Schema = _ref.Schema;

    URL = BackboneORM.modules.url;

    backboneSync = Backbone.sync;

Address moment deprecation warning

Convenience Methods (cache: false, query_cache: false)
exists
โœ“ Handles an exist with no query
Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to moment/moment#1407 for more info.
โœ“ Handles an exist query (141ms)

404 Not Found - Cannot PUT

I get

Cannot PUT /locations

on the console, when trying to edit an entity (a location in this case).

This seems to be because, backbone-rest expects the update url to look like PUT /locations/:id, but backbone-http PUTs to /locations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.