linting fixes

This commit is contained in:
Dolan
2017-03-08 21:49:41 +00:00
parent 279a5a93f1
commit 946a222d37
16 changed files with 67 additions and 66 deletions

View File

@ -1,19 +1,19 @@
import * as _ from "lodash";
import {BaseXmlComponent} from "./base";
import { BaseXmlComponent } from "./base";
export abstract class XmlComponent extends BaseXmlComponent {
protected root: Array<BaseXmlComponent>;
protected root: BaseXmlComponent[];
constructor(rootKey: string) {
super(rootKey);
this.root = new Array<BaseXmlComponent>();
}
replaceKey(): void {
public replaceKey(): void {
// console.log(this.rootKey);
// console.log(this.root);
if (this.root !== undefined) {
this.root.forEach(root => {
this.root.forEach((root) => {
if (root && root instanceof BaseXmlComponent) {
root.replaceKey();
}
@ -27,4 +27,4 @@ export abstract class XmlComponent extends BaseXmlComponent {
export * from "./attributes"
export * from "./default-attributes";
export * from "./unit";
export * from "./property";
export * from "./property";