ASP.NET Pack Programmer's Guide
NotifyCollectionChangingEventArgs.oldItems Property
See Also
 





Gets the list of the items affected by a Remove action.

Namespace: MindFusion.Mapping
Package: Events.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(NotifyCollectionChangingEventArgs.prototype, "oldItems", { value: Array });

 Property Value

Array. The list of affected items.

 Example

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

JavaScript  Copy Code

var m = MindFusion.Mapping;

var markers = new m.DecorationLayer("Images");

...................
//add some Marker-s to the decorations property
......................

markers.decorations.collectionChanging.addEventListener(handleCollectionChanging);


function (handleCollectionChanging) (sender, args )
{
      if(args.oldItems.contains(marker1))
      {
          //do something
      }
}

 See Also

NotifyCollectionChangingEventArgs Members
NotifyCollectionChangingEventArgs Class
MindFusion.Mapping Namespace