|
|
|
@ -84,6 +84,7 @@ export default Backbone.View.extend({ |
|
|
|
this.listenTo(model, 'change:open', this.updateOpening); |
|
|
|
this.listenTo(model, 'change:layerable', this.updateLayerable); |
|
|
|
this.listenTo(model, 'change:style:display', this.updateVisibility); |
|
|
|
this.listenTo(model, 'rerender:layer', this.render); |
|
|
|
this.className = `${pfx}layer ${pfx}layer__t-${type} no-select ${ppfx}two-color`; |
|
|
|
this.inputNameCls = `${ppfx}layer-name`; |
|
|
|
this.clsTitleC = `${pfx}layer-title-c`; |
|
|
|
@ -441,6 +442,8 @@ export default Backbone.View.extend({ |
|
|
|
__render() { |
|
|
|
const { model, config, el } = this; |
|
|
|
const { onRender } = config; |
|
|
|
onRender.bind(this)({ component: model, el }); |
|
|
|
const opt = { component: model, el }; |
|
|
|
onRender.bind(this)(opt); |
|
|
|
this.em.trigger('layer:render', opt); |
|
|
|
} |
|
|
|
}); |
|
|
|
|