fixed all tslint errors

This commit is contained in:
Dolan Miu
2016-05-26 15:08:34 +01:00
parent f075d3b719
commit a2284df881
42 changed files with 253 additions and 254 deletions

View File

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

View File

@ -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 = {};

View File

@ -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;