diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index c6fb4048b..50ad3ec54 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -1008,6 +1008,8 @@ const Component = Backbone.Model.extend(Styleable).extend( }); // Symbols + // If I clone an inner symbol, I have to reset it + cloned.unset('__symbol'); if (opt.symbol) { // TODO Check if trying to clone a Symbol (check if parent is symbol) const symbols = this.get('__symbol') || []; @@ -1015,9 +1017,6 @@ const Component = Backbone.Model.extend(Styleable).extend( this.set('__symbol', symbols); this.__initSymb(); cloned.set('__symbolOf', this); - } else { - // If I clone an inner symbol, I have to reset it - cloned.unset('__symbol'); } return cloned;