dojo/_base/event (version 1.10)

Summary

This module defines dojo DOM event API. Usually you should use dojo/on, and evt.stopPropagation() + evt.preventDefault(), rather than this module.

See the dojo/_base/event reference documentation for more information.

Method Summary

  • fix(evt,sender) normalizes properties on the event object including event bubbling methods, keystroke normalization, and x/y positions
  • stop(evt) prevents propagation and clobbers the default action of the passed event

Methods

fix(evt,sender)
Defined by dojo/_base/event

normalizes properties on the event object including event bubbling methods, keystroke normalization, and x/y positions

Parameter Type Description
evt Event

native event object

sender DOMNode

node to treat as "currentTarget"

Returns:Event

native event object

stop(evt)
Defined by dojo/_base/event

prevents propagation and clobbers the default action of the passed event

Parameter Type Description
evt Event

The event object. If omitted, window.event is used on IE.

Error in the documentation? Can’t find what you are looking for? Let us know!