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 to have one time syncing for collections by setting autoSync to false.

var Todos = Backbone.Firebase.Collection.extend({
  url: 'https://backbone-firebase.firebaseio-demo.com/todos',
  autoSync: false
});

var model = todo.add({ title: 'One time persisting' }); // adds locally
model.save(); // persists to Firebase

Resolves #86, #91

@coveralls
Copy link

Coverage Status

Coverage increased (+2.82%) when pulling f74e243 on collection-o into f34f820 on 0.4-release.

davideast added a commit that referenced this pull request Sep 26, 2014
One time syncing for collections
@davideast davideast merged commit 2e953ce into 0.4-release Sep 26, 2014
@davideast davideast deleted the collection-o branch September 26, 2014 12:44
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