Hacker News new | past | comments | ask | show | jobs | submit login

> It seems that with Backbone people have forgotten this practice

To be fair, Backbone's events hash idiom is implemented using event delegation straight out of the box. It's not forgotten at all.

Although to your point: since Backbone offers no OOTB mechanism for sub-views, it offers no OOTB support for event delegation on a parent view. I just wanted to clarify where that line is drawn wrt event delegation being "forgotten".




> I just wanted to clarify where that line is drawn wrt event delegation being "forgotten".

Yes, I should have been more clear on that. I mentioned that because SC says that they may have a view (DOM element) that contains a single button (or whatever). This means they bind events on each one of those buttons, even if they have 100 of those at any given time on the DOM. Maybe they have some other form of event delegation but they haven't mentioned it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: