lyonbros/composer.js — pull request #2 by squidfunk (2012-01-16 19:22:34+00:00)
Title: Fixed references in success callbacks

Hi guys,

I revoked my prior pull request, as i reviewed my solution again.

In the model classes' ```save``` method, the custom success callback (if existent) is called with ```this``` (the current model) and ```res``` (the result). I believe that this must also be done in ```fetch``` (model and collection) and ```destroy``` (only model). In all three methods, the variable model isn't set within the scope.

What do you think? For me, this solution works as expected.

Best regards,
Martin