fixed attribute

This commit is contained in:
Dolan Miu
2016-04-05 01:49:12 +01:00
parent d197a2c717
commit d4c2b10285
9 changed files with 46 additions and 24 deletions

View File

@ -24,7 +24,7 @@ interface AttributesProperties {
}
export class Attributes implements XmlComponent {
private _attrs: Object;
private _attr: Object;
xmlKeys = {
val: "w:val",
@ -48,13 +48,13 @@ export class Attributes implements XmlComponent {
};
constructor(properties?: AttributesProperties) {
this._attrs = properties
this._attr = properties
if (!properties) {
this._attrs = {};
this._attr = {};
}
this._attrs["xmlKeys"] = this.xmlKeys;
this._attr["xmlKeys"] = this.xmlKeys;
}
}