Better HN
topnewbestaskshowjobs
Log inSign up

jsparks

2 karma · joined Apr 18, 2011 (15y ago) · 1 submissions

Submissions

comment 15y ago · link · parent

I like the approach of separating the dom events logic into its own controller.

In backbone the dom events are tied to the view which makes it more difficult to reuse the logic with other views. I've worked around this by doing pretty much the same thing as spine; i've created a dom controller from the base controller, but it's not ideal since the controller was specifically designed for hash change events.