mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Remove the versions of #clone() that follow the scheme provided by Base#clone() now.
This commit is contained in:
parent
b37ba3d858
commit
09612c4623
3 changed files with 0 additions and 12 deletions
|
@ -158,10 +158,6 @@ var Rectangle = this.Rectangle = Base.extend({
|
|||
return this.setCenterX(point.x).setCenterY(point.y);
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
return new Rectangle(this);
|
||||
},
|
||||
|
||||
equals: function(rect) {
|
||||
rect = Rectangle.read(arguments);
|
||||
return this.x == rect.x && this.y == rect.y
|
||||
|
|
|
@ -39,10 +39,6 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
|
|||
}
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
return new PathStyle(this);
|
||||
},
|
||||
|
||||
statics: {
|
||||
create: function(item) {
|
||||
var style = new PathStyle(PathStyle.dont);
|
||||
|
|
|
@ -221,10 +221,6 @@ var Segment = this.Segment = Base.extend({
|
|||
return new Segment(this._point, this._handleOut, this._handleIn);
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
return new Segment(this);
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
return this._path ? !!this._path.removeSegment(this._index) : false;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue