Files
docx-js/ts/docx/xml-components/unit.ts
2017-03-08 21:49:41 +00:00

17 lines
366 B
TypeScript

import {BaseXmlComponent} from "./base";
export abstract class XmlUnitComponent extends BaseXmlComponent {
protected root: string;
constructor(rootKey: string) {
super(rootKey);
}
public replaceKey(): void {
if (this.root !== undefined) {
this[this.rootKey] = this.root;
delete this.root;
}
}
}