Browse Source

Fix tests

pull/2732/head
Artur Arseniev 6 years ago
parent
commit
ff9d6c6b08
  1. 4
      src/dom_components/model/Components.js

4
src/dom_components/model/Components.js

@ -23,7 +23,7 @@ export default Backbone.Collection.extend({
removeChildren(removed, coll, opts = {}) {
const { domc, em } = this;
const allByID = domc.allById();
const allByID = domc ? domc.allById() : {};
if (!opts.temporary) {
// Remove the component from the gloabl list
@ -192,7 +192,7 @@ export default Backbone.Collection.extend({
const { domc, em } = this;
const style = model.getStyle();
const avoidInline = em && em.getConfig('avoidInlineStyle');
domc.Component.ensureInList(model);
domc && domc.Component.ensureInList(model);
if (
!isEmpty(style) &&

Loading…
Cancel
Save