marionettejs/backbone.marionette — pull request #437 by oatkiller (2013-01-26 03:32:02+00:00)
Title: Module finalizers now run in the context of the module

Functions passed to a module's `.addFinalizer` were called in the global context, `this` was equal to `window`. I wanted to have a reference to the relevant module in this function. Functions passed to a module's `.addInitializer` are run in the context of the module. I think that this change would improve consistency.

I changed `.run()` to `.run(undefined,this)` in the module source code.

There is a passing spec included.

Thanks!