summaryrefslogtreecommitdiff
path: root/xml.js
diff options
context:
space:
mode:
Diffstat (limited to 'xml.js')
-rw-r--r--xml.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml.js b/xml.js
index fb612ce..d1cdf68 100644
--- a/xml.js
+++ b/xml.js
@@ -166,7 +166,7 @@ ReadStream.prototype.word = function () {
// XML_Element inherits from Node:
-XML_Element.prototype = new Node();
+XML_Element.prototype = Object.create(Node.prototype);
XML_Element.prototype.constructor = XML_Element;
XML_Element.uber = Node.prototype;