MindFusion.Charting for JavaScript Programmer's Guide
EventDispatcher Class
Remarks See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Represents a dispatcher for an event.

Namespace: MindFusion.Common
File: EventDispatcher.js

## Syntax

JavaScript Copy Code
// class EventDispatcher.prototype = {}

## Remarks

This is the base class for all events raised by UI controls.

## Example

The following code handles the controlUnload method of the Window control.

JavaScript Copy Code
// Handle the controlUnload event. window1.controlUnload.addEventListener(handleWindowUnload); // This is the handler function of the wndow1.controlUnload event. // The sender argument is a reference to the Window. function handleWindowUnload(sender) { // Hide the window header. sender.dispose(); }

## Inheritance Hierarchy

MindFusion.Common.EventDispatcher

## See Also

EventDispatcher Members
MindFusion.Common Namespace