Skip to content
This repository was archived by the owner on Aug 25, 2018. It is now read-only.

Conversation

davideast
Copy link
Contributor

This PR adds the feature of one-time sync vs realtime sync via the autoSync property.

var Todo = Backbone.Firebase.Model.extend({
  urlRoot: 'https://webapi.firebaseio.com/todos',
  autoSync: false
});

var todo = new Todo({
  id: 1
});

todo.set('name', 'David'); // not persisted
todo.save(); // is persisted

Resolves #74, #84, #85, #86, #89

@coveralls
Copy link

Coverage Status

Coverage increased (+3.65%) when pulling 4446cf6 on model-once into d9aeb0e on 0.4-release.

davideast added a commit that referenced this pull request Sep 26, 2014
@davideast davideast merged commit f34f820 into 0.4-release Sep 26, 2014
@davideast davideast deleted the model-once branch September 26, 2014 06:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants