dojo/_base/event

dojo/_base/event contains the legacy API for managing DOM events and is deprecated. For handling DOM events, you should use dojo/on instead.

Usage

As with the rest of dojo/_base modules, if you are running the Dojo loader in legacy mode (async: false) this module is automatically loaded. Even if it is automatically loaded, you should require it in to have access to its features:

require(["dojo/_base/event"], function(event){
  // event now contains the modules features
});

stop(evt)

Simply calls evt.preventDefault() and evt.StopPropagation().

fix(evt)

Performs various normalization on event object.

See also

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