aboutsummaryrefslogtreecommitdiff
path: root/lib/docx/footnotes-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-06-10 15:40:05 +0100
committerMichael Williamson <mike@zwobble.org>2014-06-10 15:40:05 +0100
commit296ac78496e4d94dafd1a4f6f872a1283b796318 (patch)
tree1d30666e971e63a5bf0e4008bf1a0abacde3d0be /lib/docx/footnotes-reader.js
parent88b21ba0d0989a5c4f142f5971d33b069a7dfb26 (diff)
Pass all footnotes into document object
Diffstat (limited to 'lib/docx/footnotes-reader.js')
-rw-r--r--lib/docx/footnotes-reader.js10
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 = {};