Remove the versions of #clone() that follow the scheme provided by Base#clone() now.

This commit is contained in:
Jürg Lehni 2011-05-19 18:35:38 +01:00
parent b37ba3d858
commit 09612c4623
3 changed files with 0 additions and 12 deletions

View file

@ -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

View file

@ -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);

View file

@ -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;
},