alanjames1987 / marilyn

Marilyn is a client side, Socket.IO driven, Pub/Sub, model layer with a query system similar to Mongoose.
MIT License
114 stars 3 forks source link

Bug: Save and Update Callbacks #19

Closed alanjames1987 closed 9 years ago

alanjames1987 commented 9 years ago

When calling the update method of a model the callbacks get passed an array of objects that were updated.

When calling the save method the callbacks get passed the one object that got updated.

This should be made consistent. Update callbacks should always get an array and save should always get a single object.

alanjames1987 commented 9 years ago

Fixed in 0.16.1.