lyonbros/composer.js — pull request #1 by squidfunk (2012-01-15 13:10:48+00:00)
Title: Bugfix for Collection.fetch

Hi folks,

the scope of the variable 'model' is wrong - it results in an UncaughtReference error. As the callback is bound to the collection, the variable has to be referenced with "this.model". Works for me!

Reproduce: Fetch a collection successfully from the server and hand a callback for 'success' into the fetch method.

GREAT framework. Backbone sucks, as it relies on jQuery. I love Composer.js!

Best regards,
Martin