on

  • function
 

obj.on( event, handler )

Add a basic event listener to an object.

This is an alias of addEvent.

can.event.on.call( obj, event, handler )

This syntax can be used for objects that don't include the can.event mixin.