aboutsummaryrefslogtreecommitdiff
path: root/lib/xmlreader.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmlreader.js')
-rw-r--r--lib/xmlreader.js2
1 files changed, 1 insertions, 1 deletions
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 || [];
}