From f854e23429c23451a968dfe4691fba5eb21ea21e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 9 Apr 2013 21:36:35 +0100 Subject: Replace zipfile with unzip --- lib/document-xml-reader.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/document-xml-reader.js') diff --git a/lib/document-xml-reader.js b/lib/document-xml-reader.js index ea15204..04eec21 100644 --- a/lib/document-xml-reader.js +++ b/lib/document-xml-reader.js @@ -116,9 +116,7 @@ function DocumentXmlReader(relationships, docxFile) { .first("a:blip") .attributes["r:embed"]; var imagePath = relationships[relationshipId].target; - var readImage = function() { - return docxFile.read(path.join("word", imagePath)); - }; + var readImage = docxFile.read.bind(docxFile, path.join("word", imagePath)); var altText = element.first("wp:docPr").attributes.descr; var image = documents.Image(readImage, altText) -- cgit v1.2.3