stravid/slotcars — pull request #140 by tombu (2012-04-20 11:40:39+00:00)
Title: Pull request: Bug/fix draw finishing moment - closes #122

This PR cares about the right moment to finish drawing. Until now a normal click/touch fired the `finishedDrawing` event. I introduced the `hasValidTotalLength` method on `Track`. By using this method in the draw controllers `onTouchMouseUp` it can be ensured that `finishedDrawing` is just called if the track is long enough, otherwise you have to redraw! - see #122