Event.Object

KISSY's event system normalizes the event object according to W3C standards. The event object is guaranteed to be passed to the event handler. Most properties from the original event are copied over and normalized to the new event object.

defined in: object.js

Class

Attributes

Methods

  • halt (immediate) Stops the event propagation and prevents the default event behavior.
  • preventDefault () Prevents the event's default behavior
  • stopImmediatePropagation () Stops the propagation to the next bubble target and prevents any additional listeners from being exectued on the current target.
  • stopPropagation () Stops the propagation to the next bubble target

Class Detail

  • Event.Object ()
    KISSY's event system normalizes the event object according to W3C standards. The event object is guaranteed to be passed to the event handler. Most properties from the original event are copied over and normalized to the new event object.

Attributes Detail

  • isDefaultPrevented {Boolean} Flag for preventDefault that is modified during fire event. if it is true, the default behavior for this event will be executed.
  • isImmediatePropagationStopped {Boolean} Flag for stopImmediatePropagation that is modified during fire event. true means to stop propagation to bubble targets and other listener.
  • isPropagationStopped {Boolean} Flag for stopPropagation that is modified during fire event. true means to stop propagation to bubble targets.

Methods Detail

  • halt (immediate) view source
    Stops the event propagation and prevents the default event behavior.
    Parameters
    • [ immediate ] {Boolean} if true additional listeners on the current target will not be executed
  • preventDefault () view source
    Prevents the event's default behavior
  • stopImmediatePropagation () view source
    Stops the propagation to the next bubble target and prevents any additional listeners from being exectued on the current target.
  • stopPropagation () view source
    Stops the propagation to the next bubble target
blog comments powered by Disqus
Top