Refactor code

This commit is contained in:
Dolan
2018-09-19 23:07:37 +01:00
parent 10114bb12d
commit fc71ebdfef
2 changed files with 4 additions and 3 deletions

View File

@ -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();
} }

View File

@ -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();
} }