Hacker Newsnew | comments | show | ask | jobs | submitlogin
halayli 893 days ago | link | parent

1. Agreed, it force you to do things cleaner I guess.

2. The way I get around the problem is that bindModel takes (model, eventName, func, context) so having a view that represent different models isn't an issue in this case because it ends up being passed to bindModel.


initialize: function () {

  this.bindModel(this.model.get('someCollection'), 'add', someFunc, this);

In the app I am working on, my models tend to live much longer than the views, and they usually get updates from the server.

malandrew 892 days ago | link

Can you explain a bit more about #2? I'm not sure I understand fully what you mean.


Guidelines | FAQ | Lists | Bookmarklet | DMCA | News News | Bugs and Feature Requests | Y Combinator | Apply | Library | Contact