rename toXml -> prepForXml
This commit is contained in:
@ -16,7 +16,7 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
|
||||
}
|
||||
}
|
||||
|
||||
public toXml(): object {
|
||||
public prepForXml(): object {
|
||||
const attrs = {};
|
||||
if (this.root !== undefined) {
|
||||
_.forOwn(this.root, (value, key) => {
|
||||
@ -26,8 +26,6 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
|
||||
}
|
||||
});
|
||||
}
|
||||
const ret = {};
|
||||
ret[this.rootKey] = attrs;
|
||||
return ret;
|
||||
return {[this.rootKey]: attrs};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user