Fix overeager refactoring in c77165be3a

This commit is contained in:
Jürg Lehni 2015-10-01 08:49:26 -05:00
parent fee3a90329
commit 72f9705615

View file

@ -501,9 +501,8 @@ var Curve = Base.extend(/** @lends Curve# */{
res = this.getNext();
} else {
// otherwise create it from the result of split
var end = segment2;
segment2 = segment;
res = new Curve(segment, end);
this._segment2 = segment;
res = new Curve(segment, segment2);
}
}
return res;