derbyjs / racer

Realtime model synchronization engine for Node.js
1.19k stars 118 forks source link

[fix] pass scoped models to cb even if got error #60

Closed re1ro closed 11 years ago

re1ro commented 11 years ago

this gonna throw an error if we get err. because scoped is undefined

model.fetch(..., function(err, scoped){
  model.ref('_scoped', scoped);
});

I don't think that I should do if (err) ... in my every callback if it's not critical for me

re1ro commented 11 years ago
nateps commented 11 years ago

No longer relevant in 0.5