This commit is contained in:
Dolan
2017-03-09 22:56:08 +00:00
parent 5fac776dca
commit 7022b39d2e
21 changed files with 138 additions and 181 deletions

View File

@ -1,5 +1,5 @@
import { Attributes, XmlComponent } from "../xml-components";
export { Underline } from './underline';
export { Underline } from "./underline";
export class Bold extends XmlComponent {

View File

@ -18,9 +18,9 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
public toXml(): object {
const attrs = {};
if (this.root != undefined) {
if (this.root !== undefined) {
_.forOwn(this.root, (value, key) => {
if (value != undefined) {
if (value !== undefined) {
const newKey = this.xmlKeys[key];
attrs[newKey] = value;
}