Browse Source
Read avoidInlineStyle from config not from attributes (#2485)
Read avoidInlineStyle from config not from attributes
pull/2489/head
Artur Arseniev
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/dom_components/view/ComponentView.js
|
|
|
@ -208,7 +208,7 @@ export default Backbone.View.extend({ |
|
|
|
const em = this.em; |
|
|
|
const model = this.model; |
|
|
|
|
|
|
|
if (em && em.get('avoidInlineStyle')) { |
|
|
|
if (em && em.getConfig('avoidInlineStyle')) { |
|
|
|
this.el.id = model.getId(); |
|
|
|
const style = model.getStyle(); |
|
|
|
!isEmpty(style) && model.setStyle(style); |
|
|
|
|