|
|
|
|
|
by rhysbb
5136 days ago
|
|
I wrote https://github.com/rhysbrettbowen/PlastronJS which is an MVC for Closure Tools. I agree with Jeremy on this. but just as an extra with some features I put in PlastronJS that you might want to think about adopting or rolling your own on top of the MVC of your choice. 4. Just create a object store that acts as a factory that will return the same object. In plastronJS there is already an mvc.Store that does this for you. 6. I built on top of goog.ui.Component that has a dispose() method that gets called automagically. I added in methods on the control that will dispose the event handlers when the control is disposed (plus it only has on handler for each type and will react based on an element test). 7. I like the router separate as it decouples the routing string. Instead I use a route and then have a mediator broadcast the new route which controls can listen to. 9. Why would you do this? if you are then you're doing it wrong. |
|