code: function nodeClosed( ascent ) {
  
        emitNodeClosed( ascent);
         
        return tail( ascent) ||
               // If there are no nodes left in the ascent the root node
               // just closed. Emit a special event for this: 
               emitRootClosed(nodeOf(head(ascent)));
     }
docs: For when the current node ends.