Re:Single Page Web Apps with Backbone.js
by stusmith1977 on Friday March 16, 2012 @06:00AM
(#3712629)
Agreed. Always keep SRP in mind. In effect, this is IoC for views. Having a separate manager to manage views and their lifetimes is very useful. Need a popup dialog view? Manager handles it. Views have prerequisite views (like sign in, or loading)? Manager handles it.
instead of
we do The factory/manager can do many things! List out active views, clean up all views at any stage during their life cycle, default cleaning methods etc etc