From: Ben Beltran Date: Sat, 21 Apr 2018 07:51:20 +0000 (-0500) Subject: Call super when constructing node collection X-Git-Tag: 2.1.0^2~8 X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/commitdiff_plain/2a2e1583f260830fba4ac7c319b2b8f7bb5a34b8?hp=--cc Call super when constructing node collection --- 2a2e1583f260830fba4ac7c319b2b8f7bb5a34b8 diff --git a/lib/serpentity/node_collection.js b/lib/serpentity/node_collection.js index bb66a8d..73998b1 100644 --- a/lib/serpentity/node_collection.js +++ b/lib/serpentity/node_collection.js @@ -14,6 +14,8 @@ const NodeCollection = class NodeCollection extends Events { constructor(config) { + super(); + this.nodes = []; this.type = null;