Permalink
Browse files

Merge pull request #156 from paaddyy/master

Add options to model creation
  • Loading branch information...
nilbus committed Jul 31, 2017
2 parents bec21af + 743f61d commit ce4199b46fea1d48ae0cdee9690226cef9139f06
Showing with 15 additions and 11 deletions.
  1. +4 −0 CHANGES.md
  2. +1 −1 README.md
  3. +2 −2 backbone.dualstorage.amd.js
  4. +2 −2 backbone.dualstorage.coffee
  5. +2 −2 backbone.dualstorage.js
  6. +1 −1 bower.json
  7. +1 −1 package.json
  8. +2 −2 spec/backbone.dualstorage.js
View
@@ -1,3 +1,7 @@
### 1.4.2 / 2017-07-30
* Merge #156: Pass options to model creation - supports integration in systems with custom backbone models (@paaddyy)
### 1.4.1 / 2016-04-18
* Fix #145: Prevent model's id from being nulled (and saved locally with that id) when an offlineStatusCode is returned; broken since 1.4.0
View
@@ -1,4 +1,4 @@
Backbone dualStorage Adapter v1.4.1
Backbone dualStorage Adapter v1.4.2
===================================
A dualStorage adapter for Backbone. It's a drop-in replacement for Backbone.Sync() to handle saving to a localStorage database as a cache for the remote models.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,5 +1,5 @@
###
Backbone dualStorage Adapter v1.4.1
Backbone dualStorage Adapter v1.4.2
A simple module to replace `Backbone.sync` with *localStorage*-based
persistence. Models are given GUIDS, and saved into a JSON object. Simple
@@ -303,7 +303,7 @@ dualsync = (method, model, options) ->
if model
responseModel = modelUpdatedWithResponse(model, modelAttributes)
else
responseModel = new collection.model(modelAttributes)
responseModel = new collection.model(modelAttributes, options)
localsync('update', responseModel, options)
else
responseModel = modelUpdatedWithResponse(model, resp)
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "Backbone.dualStorage",
"main": "backbone.dualstorage.js",
"version": "1.4.1",
"version": "1.4.2",
"homepage": "https://github.com/nilbus/Backbone.dualStorage",
"authors": [
"Edward Anderson <nilbus@nilbus.com>",
View
@@ -1,7 +1,7 @@
{
"name": "Backbone.dualStorage",
"main": "backbone.dualstorage.js",
"version": "1.4.1",
"version": "1.4.2",
"homepage": "https://github.com/nilbus/Backbone.dualStorage",
"authors": [
"Edward Anderson <nilbus@nilbus.com>",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit ce4199b

Please sign in to comment.