39 points · by micahalles · 14y ago · 9 comments
It's also easier to debug if all your events business happens in one place.
http://stackoverflow.com/questions/9405148/how-can-i-bubble-...
...I always just do something along the lines of window.MyAppNamespace.EventProxy = _.extend({}, Backbone.Events);
The nice thing about this tactic is that it loosely couples interactions between your views. A coworker who also uses Backbone.js prefers passing references between your views to each other. Although this makes the code easier to read in some cases, since it's more obvious what the flow of control is, it tightly couples the components.
http://devlicio.us/blogs/mike_nichols/archive/2011/08/14/bac...
Some pitfalls:
- easy to create zombie objects
- easy to break sub-view re-usability
- gl hf if you have managed to end up with x-references