]> git.r.bdr.sh - rbdr/serpentity/commitdiff
Use the key node on nodeRemoved event
authorBen Beltran <redacted>
Sat, 21 Apr 2018 08:23:31 +0000 (03:23 -0500)
committerBen Beltran <redacted>
Sat, 21 Apr 2018 08:23:31 +0000 (03:23 -0500)
lib/serpentity/node_collection.js

index deeb26deae1dc155ab4e19ade7e382d425548006..c603d6fd1c02f2748e38bcfac8e3a8e391e85a40 100644 (file)
@@ -72,7 +72,7 @@ const NodeCollection = class NodeCollection extends Events {
 
     if (found) {
       this.nodes.splice(foundIndex, 1);
 
     if (found) {
       this.nodes.splice(foundIndex, 1);
-      this.emit('nodeRemoved', { foundNode });
+      this.emit('nodeRemoved', { node: foundNode });
     }
 
     return found;
     }
 
     return found;