diff options
Diffstat (limited to 'lib/docx/comments-reader.js')
| -rw-r--r-- | lib/docx/comments-reader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/docx/comments-reader.js b/lib/docx/comments-reader.js index 41bf8f6..725fdb4 100644 --- a/lib/docx/comments-reader.js +++ b/lib/docx/comments-reader.js @@ -2,8 +2,8 @@ var documents = require("../documents"); var Result = require("../results").Result; function createCommentsReader(bodyReader) { - function readCommentsXml(xml) { - return Result.combine(xml.root.getElementsByTagName("w:comment") + function readCommentsXml(element) { + return Result.combine(element.getElementsByTagName("w:comment") .map(readCommentElement)); } |
