This class provides 2 improvements to the Events mixin:
For allowing cancelled events, you need to supply an extra field in your class, named cancellables, which should be an array containing a list on cancellabe event names. What the class will do is to stop the event loop on the first callback that returns false, as well as making fireEvent return false. Look at the demo to see it in action. For "latched" events, add the :latched pseudo selector to the fireEvent call:
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.blog comments powered by Disqus