@ -713,7 +713,11 @@ const Component = Backbone.Model.extend(Styleable).extend(
attr.style = style;
}
return new this.constructor(attr, opts);
const cloned = new this.constructor(attr, opts);
if (em) {
em.trigger('component:clone', cloned);
return cloned;
},
/**
@ -25,7 +25,6 @@
* * [removeProperty](#removeproperty)
* * [getProperties](#getproperties)
* * [getModelToStyle](#getmodeltostyle)
* * [addType](#addtype)
* * [getType](#gettype)
* * [getTypes](#gettypes)