From 296ac78496e4d94dafd1a4f6f872a1283b796318 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 10 Jun 2014 15:40:05 +0100 Subject: Pass all footnotes into document object --- lib/docx/footnotes-reader.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/docx/footnotes-reader.js') 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 = {}; -- cgit v1.2.3