fixed all tslint errors
This commit is contained in:
@ -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];
|
||||
});
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user