mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
No need to check if _style is defined now since even Layer (ineriting from Group) now has a style.
This commit is contained in:
parent
8b9f9ea6db
commit
b3281806a3
1 changed files with 2 additions and 3 deletions
|
@ -36,9 +36,8 @@ var Item = this.Item = Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_clone: function(copy) {
|
_clone: function(copy) {
|
||||||
// If this item has a pathStyle, copy it:
|
// Copy over style
|
||||||
if (this._style)
|
copy.setStyle(this._style);
|
||||||
copy.setStyle(this._style);
|
|
||||||
// If this item has children, clone and append each of them:
|
// If this item has children, clone and append each of them:
|
||||||
if (this._children) {
|
if (this._children) {
|
||||||
for (var i = 0, l = this._children.length; i < l; i++)
|
for (var i = 0, l = this._children.length; i < l; i++)
|
||||||
|
|
Loading…
Reference in a new issue