- Fix #93: syncDirty works when models use a custom idAttribute (Ben Salinas)
- Fix #78: Do not clear local collection cache when a model is fetched
- Add
make watch
for continual coffeescript compilation during development make
compiles sourcemaps between coffeescript and javascript- Prevent id duplication in the internal list of model ids for a collection when a model is fetched
-
Add dirty/destroyed querying via
Collection.dirtyModels
andCollection.destroyedModelIds
-
Allow the default url-based storeName to be overriden with a
storeName
property on the model or collection -
Use
model.urlRoot
as the storeName, when available, beforemodel.url
. This fixes the issue described in #80 where models with the sameurlRoot
that are intended to be part of the same collection end up in different stores when the collection attribute is not set on the model.Existing apps that rely on this incorrect behavior may break.
If your app expects models with the same
urlRoot
and differingurl
s to be in different stores locally, use the following workaround in your model:storeName: function() { return this.url() }
-
Ensure models in the dirty list exist before saving. This mitigates concurrency issues noted in #62 until #35 is resolved, which should fix this problem.
-
Guard against JSON.parse(null) for Android browsers
-
Remove all usages of Model.clone() to play along with plugins (backbone-relational) that do not work with clone.
-
Fix where fetching models/collections would not merge but overwrite locally stored attributes.
-
Use the model idAttribute when saving models that were created offline. In this scenario, an update request (for an object with a temp ID) would be sent on save instead of a create request.
- Add support for RequireJS / AMD
- Fix support for models with a custom
idAttribute
- Update locally cached attributes when the server response to a save updates attributes
- Add bower metadata
- Support non-numeric model ids
- Conform localSync to Backbone.sync protocol by returning attributes
- Fix support for models with
url
defined as a function
- Add compatibility for Backbone 0.9.10
- Remove console.log calls for cleanup and IE support
- Add build Makefile for development
- Add test suite
- Add limited supoort for
fetch
add and merge options - Support defining
parseBeforeLocalSave
on models for parsing server responses before passing them to localsync - Support controlling behavior with
local
andremote
options
- Forked Backbone.dualStorage from Backbone.localStorage