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

0.5.1 release #135

Merged
merged 17 commits into from
Jan 13, 2015
Merged

0.5.1 release #135

merged 17 commits into from
Jan 13, 2015

Conversation

davideast
Copy link
Contributor

Issues resolved

Changes

No more console warnings for autoSync components!
In this release all of the console.warn() messages for autoSync components have been removed. When calling fetch() on either a Backbone.Firebase.Model or Backbone.Firebase.Collection, the sync event is triggered with the local data. success and error options will fire off if provided.

var Model = Backbone.Firebase.Model.extend({
  urlRoot: 'https://<your-firebase>.firebaseio.com/users'
});

var Collection = Backbone.Firebase.Model.extend({
  url: 'https://<your-firebase>.firebaseio.com/users'
});

var collection = new Collection();

var model = new Model({
  id: 'david'
});

/*
   The fetch() methods below will wait until the initial response have been received from the
   server and then fire off the sync event.
*/

collection.fetch({
  success: function (data) {
    console.log(data);
  }
});

model.fetch({
  success: function (data) {
    console.log(data);
  }
});

Missed the cut, but on the radar

Thanks

Thanks to @aj0strow for his PR!

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.59%) when pulling b0e4b32 on 0.5.1-release into 09730aa on master.

davideast added a commit that referenced this pull request Jan 13, 2015
@davideast davideast merged commit 6eac0be into master Jan 13, 2015
@davideast davideast deleted the 0.5.1-release branch January 13, 2015 19:50
@aj0strow
Copy link
Contributor

👏

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.

3 participants