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

@ -9,7 +9,7 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
super("_attr");
this.xmlKeys = xmlKeys;
this.root = properties
this.root = properties;
if (!properties) {
this.root = {};
@ -19,7 +19,7 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
replaceKey(): void {
if (this.root !== undefined) {
_.forOwn(this.root, (value, key) => {
var newKey = this.xmlKeys[key];
let newKey = this.xmlKeys[key];
this.root[newKey] = value;
delete this.root[key];
});

View File

@ -10,8 +10,8 @@ export abstract class XmlComponent extends BaseXmlComponent {
}
replaceKey(): void {
//console.log(this.rootKey);
//console.log(this.root);
// console.log(this.rootKey);
// console.log(this.root);
if (this.root !== undefined) {
this.root.forEach(root => {
if (root && root instanceof BaseXmlComponent) {

View File

@ -1,4 +1,4 @@
import {XmlComponent} from "./"
import {XmlComponent} from "./";
import {ParagraphProperties} from "../paragraph/properties";
import {RunProperties} from "../run/properties";
@ -42,7 +42,7 @@ export class MultiPropertyXmlComponent extends XmlComponent {
super(rootKey);
this.runProperties = new RunProperties();
this.root.push(this.runProperties);
this.paragraphProperties = new ParagraphProperties();
this.root.push(this.paragraphProperties);
}