|
|
|
@ -449,12 +449,11 @@ export default class Component extends StyleableModel<ComponentProperties> { |
|
|
|
const { em } = this; |
|
|
|
if (!em) return; |
|
|
|
|
|
|
|
const event = 'component:styleUpdate'; |
|
|
|
const styleKeys = keys(newStyles); |
|
|
|
const pros = { style: newStyles }; |
|
|
|
|
|
|
|
em.trigger(event, this, pros); |
|
|
|
styleKeys.forEach((key) => em.trigger(`${event}:${key}`, this, pros)); |
|
|
|
this.emitWithEditor(ComponentsEvents.styleUpdate, this, pros); |
|
|
|
styleKeys.forEach((key) => this.emitWithEditor(`${ComponentsEvents.stylePropertyUpdate}${key}`, this, pros)); |
|
|
|
|
|
|
|
const collectionsStateMap = this.collectionsStateMap; |
|
|
|
const allParentCollectionIds = Object.keys(collectionsStateMap); |
|
|
|
|