ASP.NET Pack Programmer's Guide
EventDispatcher Class
Remarks See Also
 





Represents a dispatcher for an event.

Namespace: MindFusion.Mapping
Package: EventDispatcher.js

 Syntax

JavaScript  Copy Code

// class
EventDispatcher.prototype = {}

 Remarks

The EventDispatcher class provides methods for attaching, detaching and raising events.

 Example

The following code handles the collectionChanging event of the decorations property of a DecorationLayer:

JavaScript  Copy Code

var m = MindFusion.Mapping;

markers.decorations.collectionChanging.addEventListener(handleCollectionChanging);


function (handleCollectionChanging) (sender, args )
{
     if(args.action == m.NotifyCollectionChangedAction.Add)
     {
          args.cancel = true;
     }
}

 Inheritance Hierarchy

MindFusion.Mapping.EventDispatcher

 See Also

EventDispatcher Members
MindFusion.Mapping Namespace