diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-06-10 15:40:05 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-06-10 15:40:05 +0100 |
| commit | 296ac78496e4d94dafd1a4f6f872a1283b796318 (patch) | |
| tree | 1d30666e971e63a5bf0e4008bf1a0abacde3d0be /lib/docx/footnotes-reader.js | |
| parent | 88b21ba0d0989a5c4f142f5971d33b069a7dfb26 (diff) | |
Pass all footnotes into document object
Diffstat (limited to 'lib/docx/footnotes-reader.js')
| -rw-r--r-- | lib/docx/footnotes-reader.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/docx/footnotes-reader.js b/lib/docx/footnotes-reader.js index a55b261..c7ec98c 100644 --- a/lib/docx/footnotes-reader.js +++ b/lib/docx/footnotes-reader.js @@ -1,14 +1,6 @@ exports.readFootnotesXml = readFootnotesXml; -function Footnotes(footnotes) { - function findFootnoteById(id) { - return footnotes[id] || null; - } - - return { - findFootnoteById: findFootnoteById - }; -} +var Footnotes = require("../documents").Footnotes; function readFootnotesXml(xml) { var footnotes = {}; |
