diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-14 11:54:04 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-14 11:54:04 +0100 |
| commit | aaabb8c8d6d3f0f61064d906ea86342a87bb0c3f (patch) | |
| tree | ba29717adf0f561a44306d0fe99bab133e20ec58 /lib/docx/document-xml-reader.js | |
| parent | d8ce710c8f675f48707057325376b1c27750eb77 (diff) | |
Remove document property on result from docx reading
Diffstat (limited to 'lib/docx/document-xml-reader.js')
| -rw-r--r-- | lib/docx/document-xml-reader.js | 4 |
1 files changed, 1 insertions, 3 deletions
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() { |
