Events don't chain
ultimatedelman opened this issue · comments
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.
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.