From b3281806a31a91bc47eac398066dd5f35b3150e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 21 May 2011 14:29:00 +0100 Subject: [PATCH] No need to check if _style is defined now since even Layer (ineriting from Group) now has a style. --- src/item/Item.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 42961f58..644d3672 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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++)