bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.68k stars 443 forks source link

Events don't chain #4

Closed ultimatedelman closed 11 years ago

ultimatedelman commented 11 years ago

One is unable to chain events on an instance:

var deck = bespoke.horizontal('article');
deck.on('next', myfunc).on('prev', myfunc).on('slide', myfunc);

This code will fail.

markdalgleish commented 11 years ago

Thanks for the feedback :) This isn't so much an issue, as a feature request.

I opted not to add a fluent interface since it has little benefit in this context, unlike something inherently collection-based, like jQuery. It would also likely push the project over my 1kb limit.

It might be something I add in the future if the core project remains untouched for a while and I have some bytes to spare, but it's unlikely.