mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Add PathStyle#clone().
This commit is contained in:
parent
ab9cce137c
commit
cc0f4a3f7e
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clone: function() {
|
||||||
|
return new PathStyle(this);
|
||||||
|
},
|
||||||
|
|
||||||
statics: {
|
statics: {
|
||||||
create: function(item, other) {
|
create: function(item, other) {
|
||||||
var style = new PathStyle(PathStyle.dont);
|
var style = new PathStyle(PathStyle.dont);
|
||||||
|
|
Loading…
Reference in a new issue