From aaabb8c8d6d3f0f61064d906ea86342a87bb0c3f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 14 Jun 2015 11:54:04 +0100 Subject: Remove document property on result from docx reading --- lib/docx/document-xml-reader.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/docx/document-xml-reader.js') diff --git a/lib/docx/document-xml-reader.js b/lib/docx/document-xml-reader.js index 662758c..ab48fe7 100644 --- a/lib/docx/document-xml-reader.js +++ b/lib/docx/document-xml-reader.js @@ -19,14 +19,12 @@ function DocumentXmlReader(options) { function convertXmlToDocument(documentXml) { var body = documentXml.root.first("w:body"); - var result = readXmlElements(body.children) + return readXmlElements(body.children) .flatMap(function(children) { return readNotes().map(function(notes) { return new documents.Document(children, {notes: notes}); }); }); - result.document = result.value; - return result; } function readNotes() { -- cgit v1.2.3