No need to check if _style is defined now since even Layer (ineriting from Group) now has a style.

This commit is contained in:
Jürg Lehni 2011-05-21 14:29:00 +01:00
parent 8b9f9ea6db
commit b3281806a3

View file

@ -36,9 +36,8 @@ var Item = this.Item = Base.extend({
},
_clone: function(copy) {
// If this item has a pathStyle, copy it:
if (this._style)
copy.setStyle(this._style);
// Copy over style
copy.setStyle(this._style);
// If this item has children, clone and append each of them:
if (this._children) {
for (var i = 0, l = this._children.length; i < l; i++)