Use dedicated XmlComponent rather than polute pure one
This commit is contained in:
11
src/file/xml-components/initializable-xml-component.ts
Normal file
11
src/file/xml-components/initializable-xml-component.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
|
||||
export abstract class InitializableXmlComponent extends XmlComponent {
|
||||
constructor(rootKey: string, initComponent?: InitializableXmlComponent) {
|
||||
super(rootKey);
|
||||
|
||||
if (initComponent) {
|
||||
this.root = initComponent.root;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user