alekseykulikov / backbone-offline

[Deprecated] Allows your Backbone.js app to work offline
MIT License
720 stars 56 forks source link

Save with @isNew()==true is called twice #13

Closed ulitiy closed 11 years ago

ulitiy commented 12 years ago

Model thinks, that it's created twice - locally and remotely I don't know if it's expected behaviour, but my overriden function save, that checks @isNew works incorrectly.

abuisman commented 12 years ago

Same here. How did you solve this in the end? Or haven't you?

ulitiy commented 12 years ago

@abuisman, temporary solution is to use an additional parameter (local==true) to filter a local save

abuisman commented 12 years ago

@ulitiy Thanks, that worked:

# For future reference
@create data, {local: true}