paperjs/paper.js — pull request #75 by abuchanan (2012-02-18 23:24:04+00:00)
Title: Path.reverse() should adjust segment indices

Hey there,

var p = new paper.Path( [[0, 0], [10, 10]] )
p.reverse()

before...

p.firstSegment.next === null

because...

p.firstSegment._index === 1 instead of 0

after the fix...

p.firstSegment.next is point [0,0]

...assuming I fixed things correctly ;)

Cheers.