summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 17:11:40 -0400
committerNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 17:11:40 -0400
commit87c2503571bd7f5e753bc16a05bd198fc58d7d7c (patch)
tree4545f569b3989ee1d2e5d1cc3e3f31108ea06742 /store.js
parent3885ced35aee903f74d48c293bc3f0665a38dba5 (diff)
downloadsnap-87c2503571bd7f5e753bc16a05bd198fc58d7d7c.tar.gz
snap-87c2503571bd7f5e753bc16a05bd198fc58d7d7c.zip
Use Object.create(…) instead of new …() for inheritance (faster)
Diffstat (limited to 'store.js')
-rw-r--r--store.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/store.js b/store.js
index 5cba3c3..6f3bc23 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;