Add event functionality into your objects.
can.event object provides a number of methods for handling events in objects. This functionality is best used by mixing the
can.event object into an object or prototype. However, event listeners can still be used even on objects that don't include
All methods provided by
can.event assume that they are mixed into an object --
this should be the object dispatching the events.
Adds event functionality to
YourClass objects. This can also be applied to normal objects: