From: Ben Beltran Date: Sat, 21 Apr 2018 08:23:31 +0000 (-0500) Subject: Use the key node on nodeRemoved event X-Git-Tag: 2.1.0^2~2 X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/commitdiff_plain/a2e3955172fea7ca30fe6d7e710157a8a00d9bbc Use the key node on nodeRemoved event --- diff --git a/lib/serpentity/node_collection.js b/lib/serpentity/node_collection.js index deeb26d..c603d6f 100644 --- a/lib/serpentity/node_collection.js +++ b/lib/serpentity/node_collection.js @@ -72,7 +72,7 @@ const NodeCollection = class NodeCollection extends Events { if (found) { this.nodes.splice(foundIndex, 1); - this.emit('nodeRemoved', { foundNode }); + this.emit('nodeRemoved', { node: foundNode }); } return found;