fixed all tslint errors
This commit is contained in:
@ -5,11 +5,11 @@ export class Body extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:body");
|
||||
//this.root.push(new SectionProperties()); not actually needed
|
||||
// this.root.push(new SectionProperties()); not actually needed
|
||||
}
|
||||
|
||||
push(component: XmlComponent) {
|
||||
//this.root.splice(this.body.length - 1, 0, component);
|
||||
// this.root.splice(this.body.length - 1, 0, component);
|
||||
this.root.push(component);
|
||||
}
|
||||
}
|
||||
|
@ -54,8 +54,8 @@ export class DocumentAttributes extends XmlAttributeComponent {
|
||||
xsi: "xmlns:xsi",
|
||||
type: "xsi:type"
|
||||
}, properties);
|
||||
|
||||
this.root = properties
|
||||
|
||||
this.root = properties;
|
||||
|
||||
if (!properties) {
|
||||
this.root = {};
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {XmlComponent} from "../xml-components";
|
||||
import {DocumentAttributes} from "./document-attributes"
|
||||
import {DocumentAttributes} from "./document-attributes";
|
||||
import {Body} from "./body";
|
||||
import {Paragraph} from "../paragraph";
|
||||
|
||||
@ -34,7 +34,7 @@ export class Document extends XmlComponent {
|
||||
addParagraph(paragraph: Paragraph): void {
|
||||
this.body.push(paragraph);
|
||||
}
|
||||
|
||||
|
||||
clearVariables(): void {
|
||||
this.body.clearVariables();
|
||||
delete this.body;
|
||||
|
Reference in New Issue
Block a user