issa-tseng / janus

the two-faced application library-framework.
http://janusjs.org
37 stars 7 forks source link

Allow find('…').on('event', ['selector'], (event, subject, view) -> { … }) #89

Closed issa-tseng closed 6 years ago

issa-tseng commented 6 years ago

In conjunction with #87 and #88, we can eliminate a lot of boilerplate and streamline view definition if one is allowed to declare event handlers directly from the find() syntax.

I would still advocate that best practices are to separate content from behaviour, but that is entirely up to the user to decide.