buddycloud/webclient — pull request #5 by vitoravelino (2012-09-09 03:02:34+00:00)
Title: Fixing and improving un/following channel feature

Hey guys!

Another feature finished. Maybe there's some dirty code because I'm sleepy but it's working.

Considerations:
- Using Backbone.Events as a mediator to delegate actions to the responsibles;
- Exchange un/subscribe method call from MetadataPane by mediator triggering event. Even if MetadaPane view has SubscribedChannels model, it's not its business know how the model works. The only function of SunscribedChannels model to MetadataPane is to provide information and not cause a side effect.;
- Triggering un/subscribedChannel when got a success from the server. This is gonna be useful because there are other components interested on these events to change their visual elements.
- It wasn't created a view class for subscribed channel and follower because they are simple and don't demanded to handle events (at least not for now).

Maybe I forgot a consideration, maybe not. Hope you can understand them.