Browse Source

Up

pull/4141/head
Artur Arseniev 4 years ago
parent
commit
82a61ec139
  1. 2
      src/dom_components/model/Components.js

2
src/dom_components/model/Components.js

@ -68,7 +68,7 @@ export default Backbone.Collection.extend({
const allByID = domc?.allById() || {}; const allByID = domc?.allById() || {};
const parsed = this.parseString(input, opts); const parsed = this.parseString(input, opts);
const cmps = isArray(parsed) ? parsed : [parsed]; const cmps = isArray(parsed) ? parsed : [parsed];
const newCmps = getComponentsFromDefs(cmps, allByID); const newCmps = getComponentsFromDefs(cmps, allByID, opts);
this.reset(newCmps, opts); this.reset(newCmps, opts);
this.em?.trigger('component:content', this.parent, opts, input); this.em?.trigger('component:content', this.parent, opts, input);
}, },

Loading…
Cancel
Save