|
|
|
@ -471,7 +471,7 @@ const Component = Backbone.Model.extend(Styleable).extend( |
|
|
|
const propOrig = this.getStyle(); |
|
|
|
this.rule = cc.setIdRule(this.getId(), prop, { ...opts, state }); |
|
|
|
const diff = shallowDiff(propOrig, prop); |
|
|
|
this.set('style', {}, { silent: 1 }); |
|
|
|
this.set('style', '', { silent: 1 }); |
|
|
|
keys(diff).forEach(pr => this.trigger(`change:style:${pr}`)); |
|
|
|
} else { |
|
|
|
prop = Styleable.setStyle.apply(this, arguments); |
|
|
|
|