Refactor code
This commit is contained in:
@ -15,9 +15,10 @@ export interface IDocumentFooter {
|
|||||||
export class FooterWrapper {
|
export class FooterWrapper {
|
||||||
private readonly footer: Footer;
|
private readonly footer: Footer;
|
||||||
private readonly relationships: Relationships;
|
private readonly relationships: Relationships;
|
||||||
private readonly media = new Media();
|
private readonly media: Media;
|
||||||
|
|
||||||
constructor(referenceId: number, initContent?: XmlComponent) {
|
constructor(referenceId: number, initContent?: XmlComponent) {
|
||||||
|
this.media = new Media();
|
||||||
this.footer = new Footer(referenceId, initContent);
|
this.footer = new Footer(referenceId, initContent);
|
||||||
this.relationships = new Relationships();
|
this.relationships = new Relationships();
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,10 @@ export interface IDocumentHeader {
|
|||||||
export class HeaderWrapper {
|
export class HeaderWrapper {
|
||||||
private readonly header: Header;
|
private readonly header: Header;
|
||||||
private readonly relationships: Relationships;
|
private readonly relationships: Relationships;
|
||||||
private readonly media = new Media();
|
private readonly media: Media;
|
||||||
|
|
||||||
// constructor(private readonly media: Media, referenceId: number, initContent? : XmlComponent) {
|
|
||||||
constructor(referenceId: number, initContent?: XmlComponent) {
|
constructor(referenceId: number, initContent?: XmlComponent) {
|
||||||
|
this.media = new Media();
|
||||||
this.header = new Header(referenceId, initContent);
|
this.header = new Header(referenceId, initContent);
|
||||||
this.relationships = new Relationships();
|
this.relationships = new Relationships();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user