From 5ef919a8233f4c02fd50948d3ca359ac5bd6433a Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 19 May 2016 23:05:52 +0100 Subject: [PATCH] using the new attributes --- ts/styles/style/attributes.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ts/styles/style/attributes.ts b/ts/styles/style/attributes.ts index 8a7b0df1ae..a227979cb4 100644 --- a/ts/styles/style/attributes.ts +++ b/ts/styles/style/attributes.ts @@ -12,19 +12,13 @@ interface StyleAttributesProperties { export class StyleAttributes extends XmlAttributeComponent { private _attr: Object; - constructor(properties?: StyleAttributesProperties) { + constructor(properties: StyleAttributesProperties) { super({ type: "w:type", styleId: "w:styleId", default: "w:default", customStyle: "w:customStyle", val: "w:val" - }); - - this.root = properties; - - if (!properties) { - this.root = {}; - } + }, properties); } } \ No newline at end of file