code: function onOut(e) {
        var target = e.fromElement || e.originalTarget;
  
        if (!self.settings('eventsEnabled'))
          return;
  
        var el = new Element(target);
  
        if (el.isNode()) {
          self.dispatchEvent('outNode', {
            node: graph.nodes(el.attr('data-node-id'))
          });
        }
        else if (el.isEdge()) {
          var edge = graph.edges(el.attr('data-edge-id'));
          self.dispatchEvent('outEdge', {
            edge: edge,
            source: graph.nodes(edge.source),
            target: graph.nodes(edge.target)
          });
        }
      }
docs: On out