ganarajpr/angular-dragdrop — pull request #14 by martinraison (2014-03-18 05:23:00+00:00)
Title: Allow dummy event in uiDraggable dragend handler

When using triggerHandler on an angular.js element, a dummy event is passed to the element. So for example calling

element.triggerHandler("dragend")

would cause a javascript exception, since `e` is undefined.

Calling `triggerHandler` is useful for example when the element being dragged is removed from the DOM before it receives the "dragend" event. In this case the "dragend" handler has to be called manually before removing the element.