Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Commits on Jun 25, 2015
  1. Merge pull request #141 from allbinmani/master

    Added a package.json, so you can npm install Backbone.dualStorage
  2. @allbinmani
Commits on May 3, 2015
Commits on May 1, 2015
  1. Add contributing guidelines

    Closes #120
  2. Use CoffeeScript 1.9.2

Commits on Mar 2, 2015
  1. Merge pull request #136 from carljm/fix-bower-json

    Fix capitalization of main file in bower.json.
  2. @carljm
Commits on Feb 16, 2015
  1. Release version 1.4.0

Commits on Feb 13, 2015
  1. Merge pull request #133 from hippich/pk-model-tojson-2

    Fix accessing model attributes directly.
Commits on Feb 5, 2015
  1. @hippich
Commits on Feb 3, 2015
  1. Merge pull request #132 from hippich/pk-model-tojson

    Use model.toJSON() when available to retrieve model content
    Fixes #131
  2. @hippich
Commits on Jan 2, 2015
  1. Merge pull request #128 from luke83/patch-1

    Fix test comment
Commits on Jan 1, 2015
  1. @luke83

    Typo in example

    luke83 authored
    I think the example is about people, not cars. Maybe it was an old reference to old example code..
Commits on Aug 13, 2014
  1. Merge pull request #124 from rtibbles/master

    Expose original Backbone Sync to allow for customization of online sync method
  2. @rtibbles

    Changes from DualStorage.backboneSync to originalSync.

    rtibbles authored
  3. @rtibbles

    Adds backboneSync object to DualStorage object to allow for

    rtibbles authored
    customization of BackboneSync behaviour for onlineSyncing.
Commits on Jul 15, 2014
  1. Use the appropriate callback when using offline storage

    Blanket success was incorrect. For example, when fetching and id that was never cached locally,
    the error callback should be used.
    Related: #94
Commits on Jul 8, 2014
  1. Merge branch 'uuid'

  2. Give credit for #117

  3. @almilli


    almilli authored
  4. @almilli

    Changed temporary IDs so they don't conflict with the UUID spec so yo…

    almilli authored
    …u can use UUIDs as permanent IDs.
Commits on Jul 7, 2014
  1. Use a reliable source to get the xhr for checking the request status

    Backbone.sync only sent xhr as a 3rd argument in Backbone <= 0.9.9.
    With Backbone >= 1.0.0, every successful request would fail while
    checking the status, as of 863db19 (unreleased).
    - Update the Backbone.sync stub to reflect the change in Backbone 1.0.0.
    - Update the Backbone.sync stub to return xhr as Backbone.sync does.
    - Manually set options.xhr, since Backbone <= 0.9.9 did not set this.
    - Prepend _ to _status and _xhr parameters that are not passed in
      Backbone >= 0.9.9. These cannot be used by dualstorage as they do not
      work after 0.9.9 and are just passed along for compatibility with
      these older versions.
Commits on Jun 30, 2014
  1. Rename offlineStatusCodes parameter to xhr in the README

    This makes it clear that the xhr object is always passed, not the response body.
    Also add this option to the changelog.
Commits on Jun 24, 2014
  1. Allow Backbone.DualStorage.offlineStatusCodes to include 200 OK as an…

    … offline status
    - Rename error callback parameter to xhr, since that is really what it is
    - Update the mock ajax callback xhr argument to always include the http status and response
Commits on Jun 23, 2014
  1. Update changelog for #115

  2. Merge branch 'destroy-tempid'

    Closes #115
  3. @DatenMetzgerX

    Model with temp id should not be marked as destroyed

    DatenMetzgerX authored committed
    If a model with a temp id is destroyed, it should not be marked as
    destroyed. Because it has never been synced with the server.
  4. @DatenMetzgerX

    Invoke Callbacks when model with temp id is destroyed

    DatenMetzgerX authored committed
    When a model with a temp id is destroyed, then the success and error
    callbacks should be invoked too.
Commits on Jun 8, 2014
  1. Allow records to be created when offline and no store exists

    This bug was introduced in #94 and v1.3.1.
Commits on May 30, 2014
  1. Release version 1.3.1

    Closes #109
Commits on May 14, 2014
Something went wrong with that request. Please try again.