From 1329a8a1e03b5537934c355cee1367f776eff28d Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sun, 1 May 2016 22:49:51 +0100 Subject: [PATCH] cleaning --- ts/docx/document/index.ts | 1 - ts/export/formatter.ts | 14 -------------- ts/export/packer/packer.ts | 1 - ts/tests/paragraphStyleTest.ts | 1 - 4 files changed, 17 deletions(-) diff --git a/ts/docx/document/index.ts b/ts/docx/document/index.ts index 821e699276..1c2f9d0577 100644 --- a/ts/docx/document/index.ts +++ b/ts/docx/document/index.ts @@ -36,7 +36,6 @@ export class Document extends XmlComponent { } clearVariables(): void { - console.log("clearing"); this.body.clearVariables(); delete this.body; } diff --git a/ts/export/formatter.ts b/ts/export/formatter.ts index 83492da2d7..7cac7e0c67 100644 --- a/ts/export/formatter.ts +++ b/ts/export/formatter.ts @@ -13,20 +13,6 @@ export class Formatter { private replaceKeys(input: XmlComponent): Object { input.replaceKey(); - this.deepTraverseJson(input, (parent, value, key) => { - /*if (isNaN(key) && key !== "rootKey") { - var newKey = parent.rootKey; - console.log(key); - if (newKey) { - parent[newKey] = parent[key]; - delete parent[key]; - } else { - //console.error("Key is not in dictionary:" + key); - } - }*/ - //console.log(value); - //parent.replaceKey(); - }); return input; } diff --git a/ts/export/packer/packer.ts b/ts/export/packer/packer.ts index d57ba72776..fd2f04e6f4 100644 --- a/ts/export/packer/packer.ts +++ b/ts/export/packer/packer.ts @@ -66,6 +66,5 @@ export abstract class Packer { }); this.archive.finalize(); - console.log("done"); } } \ No newline at end of file diff --git a/ts/tests/paragraphStyleTest.ts b/ts/tests/paragraphStyleTest.ts index b19299b8eb..346e06f943 100644 --- a/ts/tests/paragraphStyleTest.ts +++ b/ts/tests/paragraphStyleTest.ts @@ -15,7 +15,6 @@ describe("ParagraphStyle", () => { it("should create a style with given value", () => { style = new Style("test"); var newJson = jsonify(style); - console.log(newJson.root[0].root.val); assert.equal(newJson.root[0].root.val, "test"); });