summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'store.js')
-rw-r--r--store.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/store.js b/store.js
index 5cba3c3..a45c801 100644
--- a/store.js
+++ b/store.js
@@ -246,7 +246,7 @@ var SnapSerializer;
// SnapSerializer inherits from XML_Serializer:
-SnapSerializer.prototype = new XML_Serializer();
+SnapSerializer.prototype = Object.create(XML_Serializer.prototype);
SnapSerializer.prototype.constructor = SnapSerializer;
SnapSerializer.uber = XML_Serializer.prototype;
@@ -274,6 +274,7 @@ SnapSerializer.prototype.watcherLabels = {
// SnapSerializer instance creation:
function SnapSerializer() {
+ XML_Serializer.call(this);
this.init();
}