craftyjs/Crafty — pull request #315 by ABevier (2012-07-17 14:35:16+00:00)
Title: Fix the startDrag function

I fixed the startDrag function of the Draggable component so that it works when a drag is initiated programatically. If the function is called, it will use the last known position of the mouse which is stored in Crafty.lastEvent. I created a private function to share the common code used when starting a drag with a mouse event and starting a drag via startDrag.