code: function() {
  
          var target = this.target();
          var graph = this.graph;
  
          return (target && target.id && graph && graph.getCell(target.id)) || null;
      }
docs: unlike target(), this method returns null if target is a point