regebro/svg.path — pull request #7 by abcjjy (2014-07-13 01:31:05+00:00)
Title: Fix bug of Z close path behavior

SVG Spec about close path command:

The "closepath" (Z or z) ends the current subpath and causes an automatic straight line to be drawn from the current point to the initial point of the current subpath. If a "closepath" is followed immediately by a "moveto", then the "moveto" identifies the start point of the next subpath. If a "closepath" is followed immediately by any other command, then the next subpath starts at the same initial point as the current subpath.

Reference:
http://www.w3.org/TR/SVG/paths.html#PathDataClosePathCommand