From f397a47dd2bb9e294ff86d4a4747234b85887819 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 1 Apr 2013 12:39:38 +0100 Subject: Read bold and italic properties on runs --- lib/xmlreader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/xmlreader.js') diff --git a/lib/xmlreader.js b/lib/xmlreader.js index 3efad63..7c15019 100644 --- a/lib/xmlreader.js +++ b/lib/xmlreader.js @@ -65,7 +65,7 @@ function mapValues(input, mapper, context) { function Element(name, attributes, children) { this.type = "element"; this.name = name; - this.attributes = attributes; + this.attributes = attributes || {}; this.children = children || []; } -- cgit v1.2.3