Browse Source

Update symbols change

pull/3411/head
Artur Arseniev 6 years ago
parent
commit
c3e50e55cb
  1. 4
      src/dom_components/model/Component.js

4
src/dom_components/model/Component.js

@ -1238,13 +1238,13 @@ const Component = Backbone.Model.extend(Styleable).extend(
cloned.unset(keySymbols); cloned.unset(keySymbols);
} else if (symbol) { } else if (symbol) {
// Contains already a reference to a symbol // Contains already a reference to a symbol
symbol.get(keySymbols).push(cloned); symbol.set(keySymbols, [...symbol.__getSymbols(), cloned]);
cloned.__initSymb(); cloned.__initSymb();
} else if (opt.symbol) { } else if (opt.symbol) {
// Request to create a symbol // Request to create a symbol
if (this.__isSymbol()) { if (this.__isSymbol()) {
// Already a symbol, cloned should be an instance // Already a symbol, cloned should be an instance
this.get(keySymbols).push(cloned); this.set(keySymbols, [...symbols, cloned]);
cloned.set(keySymbol, this); cloned.set(keySymbol, this);
cloned.__initSymb(); cloned.__initSymb();
} else if (opt.symbolInv) { } else if (opt.symbolInv) {

Loading…
Cancel
Save