diff --git a/src/path/Segment.js b/src/path/Segment.js index b71de244..ba525684 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -318,6 +318,10 @@ var Segment = this.Segment = Base.extend(/** @lends Segment# */{ return this._path ? !!this._path.removeSegment(this._index) : false; }, + clone: function() { + return new Segment(this._point, this._handleIn, this._handleOut); + }, + equals: function(segment) { return segment == this || segment && this._point.equals(segment._point)