MindFusion.Charting for JavaScript Programmer's Guide
EventDispatcher Class
Remarks See Also
 






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