Bing Maps v8 - DirectionsManager - dragDropCompleted event error
<p>I am trying the Bing Maps v8 using DirectionsManager Class. The docs describes a dragDropCompleted event, as link below:</p>

<p><a href="https://msdn.microsoft.com/pt-br/library/hh312802.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/pt-br/library/hh312802.aspx</a></p>

<p>I have created an example based on Bing Maps Interactive SDK:</p>

<p><a href="http://www.bing.com/api/maps/sdk/mapcontrol/isdk#directionsEvent_directionsUpdated+JS" rel="nofollow noreferrer">http://www.bing.com/api/maps/sdk/mapcontrol/isdk#directionsEvent_directionsUpdated+JS</a></p>

<p>But an error occurs when I run my script:</p>

<p><strong>ERROR: Cannot read property 'add' of undefined</strong></p>

<p>Can someone help me, please?</p>

<pre><code> var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
    credentials: 'Your Bing Maps Key',
    center: new Microsoft.Maps.Location(47.606209, -122.332071),
    zoom: 12
 });

 Microsoft.Maps.loadModule('Microsoft.Maps.Directions', function () {
    var directionsManager = new Microsoft.Maps.Directions.DirectionsManager(map);
    // Set Route Mode to driving
    directionsManager.setRequestOptions({ routeMode: Microsoft.Maps.Directions.RouteMode.driving });

    var waypoint1 = new Microsoft.Maps.Directions.Waypoint({ address: 'Redmond', location: new Microsoft.Maps.Location(47.67683029174805, -122.1099624633789) });
    var waypoint2 = new Microsoft.Maps.Directions.Waypoint({ address: 'Seattle', location: new Microsoft.Maps.Location(47.59977722167969, -122.33458709716797) });
    directionsManager.addWaypoint(waypoint1);
    directionsManager.addWaypoint(waypoint2);

    Microsoft.Maps.Events.addHandler(directionsManager, 'dragDropCompleted', function () {
        console.log('Drag &amp; Drop Complete!');
    })

    directionsManager.calculateDirections();
 });
</code></pre>