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

@ -27,7 +27,7 @@ interface DocumentAttributesProperties {
}
export class DocumentAttributes implements XmlComponent {
private _attrs: Object;
private _attr: Object;
xmlKeys = {
wpc: 'xmlns:wpc',
@ -56,11 +56,11 @@ export class DocumentAttributes implements XmlComponent {
};
constructor(properties?: DocumentAttributesProperties) {
this._attrs = properties
this._attr = properties
if (!properties) {
this._attrs = {};
this._attr = {};
}
this._attrs["xmlKeys"] = this.xmlKeys;
this._attr["xmlKeys"] = this.xmlKeys;
}
}