• function

can.trigger

 

Trigger an event.

can.trigger(target, eventName[, args])

Parameters

  1. target {Object}

    The object to trigger the event on.

  2. eventName {String}

    The event to trigger.

  3. args {Array<*>}Optional

    The event data.

    Trigger an event on an element or object.