Browse Source

Add preinitialize to ComponentView

pull/5546/head
Artur Arseniev 3 years ago
parent
commit
1185b1da47
  1. 4
      src/dom_components/view/ComponentView.ts

4
src/dom_components/view/ComponentView.ts

@ -48,6 +48,10 @@ Component> {
getTemplate?: Function;
scriptContainer?: HTMLElement;
preinitialize(opt: any = {}) {
this.opts = opt;
}
initialize(opt: any = {}) {
const model = this.model;
const config = opt.config || {};

Loading…
Cancel
Save